extends class Phalcon\Mvc\Model\Exception
implements Throwable
Source on GitHub
This exception is generated when a model fails to save a record Phalcon\Mvc\Model must be set up to have this behavior
Methods
public __construct (Model $model, Message[] $validationMessages)
Phalcon\Mvc\Model\ValidationFailed constructor
public getModel ()
Returns the model that generated the messages
public getMessages ()
Returns the complete group of messages produced in the validation
final private Exception __c