/** * Add a relation to the collection that shortcuts to the first element of the collection */ protected function init() { parent::init(); // first item as 'first' alias $this->_belongs_to = array('first' => array('model' => $this->_item_model, 'foreign_key' => 'item_id')); }