예제 #1
0
 /**
  * @param CTenant $oTenant
  *
  * @return bool
  */
 public function createTenant(CTenant &$oTenant)
 {
     $bResult = false;
     if ($this->oConnection->Execute($this->oCommandCreator->createTenant($oTenant))) {
         $bResult = true;
         $oTenant->IdTenant = $this->oConnection->GetLastInsertId('awm_tenants', 'id_tenant');
     }
     $this->throwDbExceptionIfExist();
     return $bResult;
 }