【发布时间】:2012-08-18 10:03:07
【问题描述】:
我有一张桌子files,它属于post、article、notion 或paragrah。也许在未来,还会有更多。
你建议使用什么关系?多个 HABTM 表,或多个列(post_id、aticle_id、...)?
或者两列 parent_alias 和 parent_id?但是如何在 CakePHP 中轻松使用它呢?
感谢您的任何建议!
【问题讨论】:
标签: database cakephp relationship has-many has-and-belongs-to-many