class Model_Donation extends \Orm\Model { protected static $_belongs_to = array('project');
class Model_Project extends \Orm\Model { protected static $_has_many = array('donations') ;
$d = Model_Donation::find(1); >>> $d Model_Donation::__set_state(array( '_is_new' => false, '_frozen' => false, '_data' => array ( 'id' => '1', 'amount' => '500', 'project_id' => '1', 'created_at' => '1328175979', 'updated_at' => '1328175979', ), '_original' => array ( 'id' => '1', 'amount' => '500', 'project_id' => '1', 'created_at' => '1328175979', 'updated_at' => '1328175979', ), '_data_relations' => array ( ), '_original_relations' => array ( ), '_view' => NULL, '_iterable' => array ( ), ))
It looks like you're new here. If you want to get involved, click one of these buttons!