Ejemplo n.º 1
0
 /**
  * Saves changes made to the account.
  * 
  * @param CAccount &$oAccount Account object containing data to be saved.
  * 
  * @return bool
  */
 public function updateAccount(CAccount $oAccount)
 {
     $bResult = (bool) ($this->oConnection->Execute($this->oCommandCreator->updateAccountQuery($oAccount)) && $this->oConnection->Execute($this->oCommandCreator->updateUserQuery($oAccount->User)));
     $this->throwDbExceptionIfExist();
     return $bResult;
 }