Commit 1375d133 authored by gnat's avatar gnat

Added a test case that objects fail to update a field in proxy state.

parent fc2f9f29
......@@ -130,4 +130,20 @@ class Doctrine_Record_State_TestCase extends Doctrine_UnitTestCase {
$this->assertEqual($count, count($this->dbh));
}
public function testAssignFieldsToProxies() {
$user = new User();
$user->name = 'someuser';
$user->password = '123';
$user->save();
$this->connection->clear();
$user = $this->connection->queryOne("SELECT u.name FROM User u WHERE u.name = 'someuser'");
$user->name = 'someother';
$user->save();
$this->assertEqual($user->name, 'someother');
}
}
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