【发布时间】:2013-01-23 07:09:20
【问题描述】:
在 PHP ActiveRecord 中链接 EAV 表结构中的表以便我可以检索实体及其所有属性/值的最佳方法是什么?
表结构类似于。
person (entity)
personAttributes (attributes)
personAttributeVarchar (attribute values)
personAttributeText (attribute values)
personAttributeInt (attribute values)
我发现这个示例使用带有 EAV 模式的 Ruby 活动记录。可以使用php活动记录复制吗?
https://github.com/kostyantyn/example_active_record_as_eav/tree/master/app/models
【问题讨论】:
标签: entity-attribute-value phpactiverecord