/**
  * @param $email
  * @param $password
  * @return array
  */
 public function createUser($email, $password)
 {
     $user = new UserEntity();
     $user->setEmail($email);
     $user->setPassword($password);
     $this->getEntityManager()->persist($user);
     $this->getEntityManager()->flush();
     return array('id' => $user->getId(), 'created' => $user->getCreated(), 'updated' => $user->getUpdated(), 'email' => $user->getEmail());
 }
 public function getUpdated()
 {
     $this->__load();
     return parent::getUpdated();
 }