1
0
mirror of synced 2025-01-05 16:53:21 +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() public function testFetchArrayNull()
{ {
$u = new User(); $u = new User();
$u->name = "fetch_array_test"; $u->name = "fetch_array_test";
$u->created = null; $u->created = null;
$u->save(); $u->save();
$q = new Doctrine_Query(); $q = new Doctrine_Query();
$q->select('u.*')->from('User u')->where('u.id = ?'); $q->select('u.*')->from('User u')->where('u.id = ?');
$users = $q->execute(array($u->id), Doctrine::HYDRATE_ARRAY); $users = $q->execute(array($u->id), Doctrine::HYDRATE_ARRAY);
$this->assertEqual($users[0]['created'], null); $this->assertEqual($users[0]['created'], null);
} }
} }