My question is about saving related models (https://docs.phalconphp.com/en/latest/reference/models.html#storing-related-records) and the validate message (Phalcon\Mvc\Model\Message) of model which has relation.

Say model Student has a child model PersonalInfos and another child model SystemUsers; when saving all three instances with a one-line systemUser->save(), during the validation step of the PersonalInfos instance, a message is appended; when calling the getModel() function after the save() is failed, the message from the PersonalInfos instance is having Student as it's model (the getModel() function call returned Student).

Is it an error? Or is not doable to save multi-generation related records?

thanks in advance