Results 1 to 2 of 2

Thread: Defining many-to-many relationships

  1. #1
    bryanzera is offline 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?

  2. #2
    unnamed is offline 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.

Similar Threads

  1. Simple question about defining vars in config
    By tutunmayan in forum Installation & Configuration
    Replies: 2
    Last Post: 06-19-2010, 10:17 AM
  2. Help with relationships...
    By jujubee in forum Databases
    Replies: 0
    Last Post: 05-12-2010, 05:40 PM
  3. Replies: 1
    Last Post: 09-29-2009, 08:08 AM
  4. Defining action for controller will not load css. :(
    By krubach in forum Model-View-Controller (MVC)
    Replies: 2
    Last Post: 09-12-2008, 09:36 PM
  5. table relationships
    By jetru in forum Databases
    Replies: 1
    Last Post: 07-15-2008, 06:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •