public function setPasswordObject(Password $password) { $this->setNtPassword($password->getNtHash()); $this->setLmPassword($password->getLmHash()); $this->setCryptPassword($password->getCryptHash()); $this->setUnixPassword($password->getUnixHash()); }
public function setPassword(Password $password) { $this->setNtPassword($password->getNtHash()); $this->setLmPassword($password->getLmHash()); $this->setCryptPassword($password->getCryptHash()); $this->setUnixPassword($password->getUnixHash()); return $this->save(); }