/**
  * @param AddressGroup $group
  * @return bool
  */
 function InsertAddressGroup(&$group)
 {
     if (!$this->_dbConnection->Execute($this->_commandCreator->InsertAddressGroup($group))) {
         return false;
     }
     $group->Id = $this->_dbConnection->GetLastInsertId();
     return true;
 }
Beispiel #2
0
 /**
  * @param AddressGroup $group
  * @return bool
  */
 function InsertAddressGroup(&$group)
 {
     if ($this->_dbConnection->Execute($this->_commandCreator->InsertAddressGroup($group))) {
         $group->Id = $this->_dbConnection->GetLastInsertId();
         $group->GroupStrId = AddressGroup::STR_PREFIX . $group->Id;
         return $this->UpdateGroupStrId($group->Id, $group->GroupStrId);
     }
     return false;
 }