Your joining table needs to be become its own model as a belongs to for Table1 and Table2 and then Table2 has many Table1_Table2 and same for Table1.
On Mon, Dec 31, 2012 at 5:34 AM, Anis Ghabri <ghabrianis@gmail.com> wrote:
HiI couldn't find the to solve this.here is my problemI have two tables related with many to many relationTable1(id, t1_field1, t1_field2,...);Table2(id, t2_field1, t2_field2,...);and the association tabletable1_table2(id,table1_id,table2_id,extra_field1, extra_field2, extra_field3);My problem is how to add these extra fields; When I try it only adds the two tables ids and nothing else.Pleas Helpregards--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment