Commit 8002dfa3 authored by zYne's avatar zYne

--no commit message

--no commit message
parent a57226b0
......@@ -72,5 +72,13 @@ class Doctrine_Query_Update_TestCase extends Doctrine_UnitTestCase
$this->assertEqual($q->getQuery(), "UPDATE entity SET name = 'someone' WHERE id = 5 AND (type = 0)");
}
public function testUpdateSupportsColumnReferencing()
{
$q = new Doctrine_Query();
$q->update('User u')->set('u.id', 'u.id + 1');
$this->assertEqual($q->getQuery(), "UPDATE entity SET id = id + 1 WHERE (type = 0)");
}
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment