function save(eCompanyBranch &$eCompanyBranch)
 {
     try {
         if (empty($eCompanyBranch->id)) {
             $eCompanyBranch->id = $this->genId();
             $this->insert($eCompanyBranch->toData());
             Helper_App_Log::write($this->lastQuery(), FALSE, Helper_App_Log::LOG_INSERT);
         } else {
             $this->update($eCompanyBranch->toData(FALSE), $eCompanyBranch->id);
             Helper_App_Log::write($this->lastQuery(), FALSE, Helper_App_Log::LOG_UPDATE);
         }
     } catch (Exception $e) {
         //Helper_Log::write( $e->getMessage() );
         throw new Exception($e->getMessage());
     }
 }