Esempio n. 1
0
 /**
  * Creates identity in account.
  * 
  * @param CIdentity &$oIdentity Identity to create.
  * 
  * @return bool
  */
 public function createIdentity(CIdentity &$oIdentity)
 {
     $bResult = false;
     if ($this->oConnection->Execute($this->oCommandCreator->createIdentityQuery($oIdentity))) {
         $oIdentity->IdIdentity = $this->oConnection->GetLastInsertId('awm_identities', 'id_identity');
         $bResult = true;
     }
     $this->throwDbExceptionIfExist();
     return $bResult;
 }