/** * @param CTenant $oTenant */ public function UpdateTenant(CTenant $oTenant) { $bResult = $this->oConnection->Execute($this->oCommandCreator->UpdateTenant($oTenant)); if ($bResult) { $this->DeleteSocialsByTenantId($oTenant->IdTenant); foreach ($oTenant->Socials as $sKey => $oSocial) { $oSocial->IdTenant = $oTenant->IdTenant; $this->CreateSocial($oSocial); } } $this->throwDbExceptionIfExist(); return $bResult; }
/** * @param CTenant $oTenant */ public function UpdateTenant(CTenant $oTenant) { $bResult = $this->oConnection->Execute($this->oCommandCreator->UpdateTenant($oTenant)); $this->throwDbExceptionIfExist(); return $bResult; }