I am having trouble with phalcon not being able to handle booleans properly. I am trying to create a change log, that contains data that has been changed.
When I use $this->getOldSnapshotData() in model to get old data boolean fields are stored as INTs. And $this->getUpdatedFields() is reporting all booleans as changed always. And as they are typed properties in the model the actual new values are booleans. Is there any way to fix this?
The properties are defined like this in the model. public ?bool $isActive = null; I am not using setters / getters if that matters. I am using Phalcon version 4.