Commit ada16bfb authored by pookey's avatar pookey

Test case for incorrect population of nulls, refs #395

parent 0d60b86e
......@@ -147,4 +147,17 @@ class Doctrine_Hydrate_FetchMode_TestCase extends Doctrine_UnitTestCase
$this->assertEqual($this->conn->count(), $count + 1);
}
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::HYDRATE_ARRAY);
$this->assertEqual($users[0]['created'], null);
}
}
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