⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

n_n relation Items



developer1789
  • profile picture
  • Member

Posted 12 February 2019 - 15:21 PM

hello 

i am à newbie to GC,

 

i have a n_n relation like this

 

$crud->set_relation_n_n('actors', 'film_actor', 'actor', 'film_id', 'actor_id', 'fullname','priority');

 

when i want to show the actors field i use $row->actors , but i don't know how to have access to each actor

the situation is like this:

 

if actors filed contain ( actor1,actor2,actor3,actor4) and i need to use a callback depending on each actor.

 

i will appreciate if you help to deal with this situation