You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make hydrators persistent with owned EntityFactory
Hydrators are now long-lived objects that own their EntityFactory instead of
receiving it as a parameter on every call. The mapper derives its entityFactory
and style from the hydrator, inverting the previous dependency direction.
- Add entityFactory property to Hydrator interface
- Split hydrate() (returns root entity) from hydrateAll() (returns full graph)
- Remove $hydrator property and hydrateFrom() from Collection
- Remove defaultHydrator()/resolveHydrator() from AbstractMapper
- Mapper constructor now takes Hydrator instead of EntityFactory
0 commit comments