コード例 #1
0
ファイル: Company.class.php プロジェクト: evilgeny/bob
 /**
  *	Description...
  *
  *	@return void
  **/
 public function delete()
 {
     if (count($this->_mapper->getUsers()->filter('company_id=?', $this->id())) > 0) {
         throw new RM_Validator_Exception(M('Base')->error('has_clients'));
     }
     parent::delete();
 }
コード例 #2
0
ファイル: Facade.class.php プロジェクト: evilgeny/bob
 public function getUsers()
 {
     return $this->_mapper->getUsers();
 }