Jump to content


Relation_n_n does not do this kind of job.

relation

  • Please log in to reply
2 replies to this topic

#1 rostamiani

rostamiani

    Member

  • Members
  • PipPip
  • 13 posts

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:

relation.png



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 03 August 2016 - 05: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



#3 rostamiani

rostamiani

    Member

  • Members
  • PipPip
  • 13 posts

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







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users