Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-09-2007, 07:49 PM
Junior Member
 
Join Date: Aug 2007
Posts: 1
Default Defining many-to-many relationships

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-11-2007, 09:32 PM
Junior Member
 
Join Date: Aug 2007
Posts: 1
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:24 AM.