예제 #1
0
 /**
  * @param CTenant $oTenant
  */
 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;
 }