⚠ 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

Relation_n_n does not do this kind of job.



rostamiani
  • profile picture
  • Member

Posted 03 August 2016 - 10:08 AM

Hi

 

I want to use Grocery CRUD for table Reserv. I need the Title field from JobTitle table. How can I access it?

This is what I tried to do but the titles are completely incorrect! :

->set_relation_n_n('Jobs_id','Jobs','JobTitle','id','JobTitle_id','Title','JobTitle.id')

This is the relationships:

[attachment=1133:relation.png]


Amit Shah
  • profile picture
  • Member

Posted 03 August 2016 - 17:41 PM

hi there...

pls refer to the n-n relation stuff

what the N-N dose is relates 2 table.. and their relation is stored in 3rd table.. u trying to relate multiple dependant table where it is failing


rostamiani
  • profile picture
  • Member

Posted 05 August 2016 - 02:17 AM

hi there...

pls refer to the n-n relation stuff

what the N-N dose is relates 2 table.. and their relation is stored in 3rd table.. u trying to relate multiple dependant table where it is failing

Thanks...

Then how can I get this query with grocery crud? What do you suggest?

(But as I know relation_n_n relates three tables and I related my three tables.)

 

relation-n-n.png