/** * @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; }