Yii2 Framework provides a model validation using rules method. Error messages are saved to errors property in the model.
Current version of AbstractStore checks only for validationErrors property but it's not enough. Every time error occurs we see "We could not save the model" without details.
So I added support for Yii2 validation errors.
P.S. Not quite sure about formatting errors as a string. It seems print_r fits well.
Yii2 Framework provides a model validation using
rules
method. Error messages are saved toerrors
property in the model. Current version ofAbstractStore
checks only forvalidationErrors
property but it's not enough. Every time error occurs we see "We could not save the model" without details.So I added support for Yii2 validation errors.
P.S. Not quite sure about formatting errors as a string. It seems
print_r
fits well.