/** * @param string $sSql * @return CDomain */ protected function getDomainBySql($sSql) { $oDomain = null; if ($this->oConnection->Execute($sSql)) { $oRow = $this->oConnection->GetNextRecord(); if ($oRow) { $oDomain = new CDomain(); $oDomain->InitByDbRow($oRow); } $this->oConnection->FreeResult(); } $this->throwDbExceptionIfExist(); return $oDomain; }