How can I use Zend’s Zend_Db_Table with many to many relationships with a junction table? Is there any built in method providing this fictionality or have to write simple SQL?
How can I use Zend’s Zend_Db_Table with many to many relationships with a junction
Share
It’s in the documentation: Fetching a Rowset via a Many-to-many Relationship
To fetch a row:
But, as for a one-to-many relationship, you need to also define the relation in the classes: Defining relationships.