Model_Genre::find($tag, array('related' => array('list','music','videos')));
protected static $_many_many = array( 'music' => array( 'key_from' => 'tag_id', 'key_through_from' => 'tag_id', 'key_through_to' => 'list_id', 'key_to' => 'list_id', 'table_through' => 'lists_tags', 'model_to' => 'Model_Music', 'cascade_save' => true, 'cascade_delete' => false, ), 'video' => array( 'key_from' => 'tag_id', 'key_through_from' => 'tag_id', 'key_through_to' => 'list_id', 'key_to' => 'list_id', 'table_through' => 'lists_tags', 'model_to' => 'Model_Video', 'cascade_save' => true, 'cascade_delete' => false, ), 'list' => array( 'key_from' => 'tag_id', 'key_through_from' => 'tag_id', 'key_through_to' => 'list_id', 'key_to' => 'list_id', 'table_through' => 'lists_tags', 'model_to' => 'Model_List', 'cascade_save' => true, 'cascade_delete' => false, ), );
Model_Genre::find($tag, array('related' => array('music')));
Jelmer Schreuder wrote on Saturday 23rd of April 2011:Not yet, this will be in 1.1: https://github.com/fuel/orm/issues/6
It looks like you're new here. If you want to get involved, click one of these buttons!