Working on an API, and when a model save/create/update fails I'd like to output the reason why - and I intended to do this via outputting the error messages returned from $model->getMessages()
if the save is not successful. I can't do this because none of the members are public. Is there a standard way to do this or do I have to manually build the error messages myself?
Shouldn't the properties of Phalcon\Mvc\Model\Message
be public anyway?