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

Phalcon\Mvc\Model serialization - object properties are lost

Guys,

I've described it here:

https://stackoverflow.com/questions/18984972/phalcon-mvc-model-serialization-object-properties-are-lost

Basically, non-DB object properties of a Model don't get serialized.

Thanks, Temuri



51.4k

It is a current behaviour of Phalcon model serializer.

A new NFR:

https://github.com/phalcon/cphalcon/issues/1285



98.9k

Note, that the current workaround is override the default serializer.