Getting tag relationships from fuel_model()
Hello! Is there any way of getting all the tags of an index from a fuel model?
I tried to use the fuel_model() to get that relations.
$result = $this->db->get()->result_array();
$careers= fuel_model('careers', ['find' => 'all', "where"=> ["id"=>$result['id']]);
foreach($careers as $career)
{
echo $career['interests'];
}
Comments
http://docs.getfuelcms.com/general/models#relationships
Yes, i did see it previously. The main issue i had was to recognize when the find_all method is invoked, the result object must be accessed trought a loop. Solved it, all things did works better!