|
|||
|
I can grasp the concept of one-to-one and many-to-one relationships between models and how to implement the relationships in the database, but I can't find any description on how to use Zend Framework to implement many-to-many relationships. Is there a tutorial or example anywhere that would help me understand how to implement a many-to-many relationship in Zend?
|
|
|||
|
have you read this?
Having two tables with many-to-many relationship you need third intersection table that keeps only relations betwen primary keys of first table and primary keys of second table. Then you have to set $_referenceMap on intersection table only(if i remember right). Seems there are some updates regarding many-to-many relations in official documentation. Read Section "9.8. Zend_Db_Table Relationships" even if you have seen it before. I can copy-paste code from my project on monday 13.08. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|