1
0
mirror of synced 2024-12-13 14:56:01 +03:00
This commit is contained in:
zYne 2007-09-06 21:05:39 +00:00
parent 88f60a022b
commit 991d56f82c

View File

@ -150,14 +150,14 @@ class Doctrine_Hydrate_FetchMode_TestCase extends Doctrine_UnitTestCase
public function testFetchArrayNull()
{
$u = new User();
$u->name = "fetch_array_test";
$u->created = null;
$u->save();
$q = new Doctrine_Query();
$q->select('u.*')->from('User u')->where('u.id = ?');
$users = $q->execute(array($u->id), Doctrine::HYDRATE_ARRAY);
$this->assertEqual($users[0]['created'], null);
$u = new User();
$u->name = "fetch_array_test";
$u->created = null;
$u->save();
$q = new Doctrine_Query();
$q->select('u.*')->from('User u')->where('u.id = ?');
$users = $q->execute(array($u->id), Doctrine::HYDRATE_ARRAY);
$this->assertEqual($users[0]['created'], null);
}
}