예제 #1
0
 /**
  * @param CTenantSocials $oSocial
  *
  * @return bool
  */
 public function CreateSocial(CTenantSocials &$oSocial)
 {
     $bResult = false;
     if ($this->oConnection->Execute($this->oCommandCreator->CreateSocial($oSocial))) {
         $bResult = true;
         $oSocial->Id = $this->oConnection->GetLastInsertId('awm_tenant_socials', 'id');
     }
     $this->throwDbExceptionIfExist();
     return $bResult;
 }