FuelPHP Bin
<?php namespace Technician; class Model_Refurbishing_Attribute extend \Orm\Model { protected static $_table_name = 'refurbishing_attributes'; protected static $_properties = array( 'id', 'refurbishing_id', 'key', 'value', ); protected static $_belongs_to = array( 'patient' => array( 'key_from' => 'refurbishing_id', 'model_to' => '\Technician\Model_Refurbishing', 'key_to' => 'id', 'cascade_save' => true, 'cascade_delete' => true, ) ); } ?>