/**
  * Convert an associative array to an object user
  *
  * @param array $data the associative array
  *
  * @return \Entity\User the object user
  */
 protected function convertArrayToObject(array $data)
 {
     $user = new User();
     $user->setId($data['id']);
     $user->setUsername($data['username']);
     $user->setPassword($data['password']);
     return $user;
 }
 /**
  * {@inheritDoc}
  */
 public function setId($id)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', array($id));
     return parent::setId($id);
 }