This commit is contained in:
parent
88f60a022b
commit
991d56f82c
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user