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