<?php defined('SYSPATH') or die('No direct access allowed.'); class Model_Item_Type extends ORM { protected $_belongs_to = array( 'item_type' => array('model' => 'item_type' , 'foreign_key' => 'types_id')); }