示例#1
0
 /**
  * Use the association to get the item from the collection
  * @param  integer $offset
  * @return mixed
  */
 public function offsetGet($offset)
 {
     $item = parent::offsetGet($offset);
     if ($item instanceof Jam_Model) {
         $this->association()->item_get($this->parent(), $item);
     }
     return $item;
 }