propelorm / Propel2

Propel2 is an open-source high-performance Object-Relational Mapping (ORM) for modern PHP
http://propelorm.org/
MIT License
1.26k stars 396 forks source link

Partial hydration #858

Open zergu opened 9 years ago

zergu commented 9 years ago

It would be nice if we could limit columns on query with select(array(...)) and still have collection of hydrated objects. That could be a nice way to optimize some queries. Currently we can set object formatter for query with limited columns but hydration expects all fields and afaik in specified order which results in Undefined offset: 1 etc. errors.

marcj commented 9 years ago

Yes, indeed. I think it is useful to mark all not-fetched columns as lazy-loading for the partial hydrated object.

MelkorNemesis commented 7 years ago

Any update on this? At the moment I would really appreciate partial hydration because of query speed optimisation.