When I try to save my model like if( !$myModel->save() )
I have to surround in try catch my condition if I want to get the errors messages...
I can't seem to check if the save() is false, because this will not return the errors.
How can I do to get $myModels->getMessages() without using try catch ?
I want to do like this example and return json_encode if the save doesn't work.