/** * @param CSocial &$oSocial * @return bool */ public function CreateSocial(CSocial &$oSocial) { $bResult = false; if ($this->oConnection->Execute($this->oCommandCreator->CreateSocial($oSocial))) { $oSocial->Id = $this->oConnection->GetLastInsertId('awm_social', 'id'); $bResult = true; } $this->throwDbExceptionIfExist(); return $bResult; }