public static function create($documentManager) { //Create data in the db to query against $documentManager->getConnection()->selectDatabase('identityModuleTest'); $identity = new Identity(); $identity->setIdentityName('toby'); $identity->setFirstName('Toby'); $identity->setLastName('Awesome'); $identity->setCredential('password1'); $identity->setEmail('*****@*****.**'); $documentManager->persist($identity); $documentManager->flush(); $documentManager->clear(); }
public function setEmail($email) { $this->__load(); return parent::setEmail($email); }