Tuesday, January 26, 2010

Re: Table Joins

Table joins take place in the model using the $belongsTo, $hasMany and $hasAndBelongsToMany variables. See http://book.cakephp.org/view/78/Associations-Linking-Models-Together.

Jeremy Burns


On 27 Jan 2010, at 06:31, Uresh wrote:


Hi...I am Uresh Patel from india.
I am cakephp beginner.
I took reference from your "Table Rename Join Error" topic.
I am trying to use inner join between only two tables.

Tables : 
1.user_profiles
              fields :-> userid (PK)

2. Memberships
              fields :->membid , userid (reference to users profile )

Can you help me over this issue.?

Thank You
----------------
Regards,
Uresh Patel
[ uresh.patel@ifuturz.com ]
http://old.nabble.com/file/p27334701/controllers.rar controllers.rar 
http://old.nabble.com/file/p27334701/models.rar models.rar 
-- 
View this message in context: http://old.nabble.com/Table-Joins-tp27334701p27334701.html
Sent from the CakePHP mailing list archive at Nabble.com.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: