예제 #1
0
 /**
  * Gets the name of the master ID column.
  * 
  * @access protected
  * @return void
  */
 protected function getMasterColumn()
 {
     return $this->master->getName() . 'Id';
 }
예제 #2
0
 /**
  * addModel 
  * 
  * @param bikes_Model_Abstract $model 
  * @access public
  * @return void
  */
 public function addModel(bikes_Model_Abstract $model)
 {
     if ($model->hasCollection()) {
         $this->collections[$model->getName()] = $model->getCollection();
     }
     if (empty($this->master)) {
         $this->master = $model;
     } else {
         $this->slave = $model;
     }
 }