public function testNullConversionHandledAutomatically() { $user1 = $this->dm->find($this->type, 1); $user1->username = null; $this->dm->flush(); $this->dm->clear(); $pUser1 = $this->dm->find($this->type, 1); $this->assertNull($pUser1->username); }