We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Hydration advantages?

While hydration is briefly touched on in the documentation, I haven't completely groked what the advantage of using is, aside from the fact that the hydrated records that are hydrated are read only. Is there a performance advantage or something else that I'm missing about using hydration?



7.5k

I apologize if I missed a setting for "bounty". I haven't used the formum much.



34.6k
Accepted
answer

If you're using classes with defined properties, the default option is the most performant one. Anyway, it depends on what you feel more confortable to work with.