Guys,
In my VERY HUMBLE opinion, the way Phalcon serializes models should change.
Currently, only columns that map to physical database table fields are auto-serialized. This presents a huge problem for Caching algorithms that rely on model serialization. Essentially, once pulled back from the backend storage, your model will miss fields that are set in Model's post-fetch routine.
I propose that Phalcon serializes all properties defined in a model class that's inheriting from Phalcon\Mvc\Model.
More info: https://github.com/phalcon/cphalcon/issues/1285 https://stackoverflow.com/questions/18984972/phalcon-mvc-model-serialization-object-properties-are-lost
Thoughts?