在 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