Replies: 2 comments 1 reply
-
Hey @tyrsson I can post my current methodology. I use a
I use a custom Hydrator which is linked to a Row Factory that passes the relation data to the Hydrator and allows on-the-fly lookups on the Row Entity. E.g. $resourceEntity->image would be either I can provide a more detailed setup, including base Abstract Rows, Tables and Hydrators if you like the sound of this approach. I decided not to use an ActiveRecord pattern for this because of the hassle of connecting/reconnecting the DB adapter if a row was serialized. However I guess it would be straightforward enough to add this feature if needed using some of the existing Laminas DB Row FeatureSet code. |
Beta Was this translation helpful? Give feedback.
-
@simon-mundy we really need to plan and create a proper RFC for this feature and a project plan for accomplishing it. I would very much like to see it make 3.0.0 but we all need to come to a consensus if we are going to include "new features" in the 3.0.0 or cut it off at deps, ci/cd upgrades, language features and satellite packages. Its already a huge amount of work without new features in 3.0. I just do not want to get bogged down in a really large feature when folks could already be making the move to 3.0. User will be dependent on our release if they are to continue using stuff like the related validators etc once they need to update SM to v4. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This thread is for brainstorming around a RelatedTable feature. I would really like to get the ideas of some others before posting my own thoughts and ideas on this topic.
Beta Was this translation helpful? Give feedback.
All reactions