/** * Gets the name of the master ID column. * * @access protected * @return void */ protected function getMasterColumn() { return $this->master->getName() . 'Id'; }
/** * 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; } }