Search code examples
magentoentity-relationshipmagento-1.5

Making one to many or many to many relations with magento ORM


I have a custom model/object for a magento extension I'm working on. I need to setup a relation to another object (for example, a relation to product).

I will need both One to Many and Many to Many relationships. How can I implement this using magento?


Solution

  • Magento's ORM doesn't have built in management for traditional 1 to many or many to many relations. You need to develop your own query strategy for this sort of thing.