我已阅读以下有关Domain Model
设计模式和Data Mapper
设计模式的文章:
- http://phpmaster.com/building-a-domain-model/
- http://phpmaster.com/integrating-the-data-mappers/
- http://www.devshed.com/c/a/MySQL/Building-an-ORM-in-PHP/
- http://www.devshed.com/c/a/MySQL/Building-an-ORM-in-PHP/1/
关系很容易one-to-one
。谁能向我解释我该如何组织many-to-many
支持?
例如:我们有树形表:和posts
,其中最后一个表是支持帖子和图像之间关系的表。images
posts_href_images
many-to-many