/** * @param CDomain &$oDomain * * @return bool */ public function createDomain(CDomain &$oDomain) { $bResult = false; if ($this->oConnection->Execute($this->oCommandCreator->createDomain($oDomain))) { $oDomain->IdDomain = $this->oConnection->GetLastInsertId('awm_domains', 'id_domain'); $bResult = true; } $this->throwDbExceptionIfExist(); return $bResult; }