Errors on attributes located within related models is now my problem. I can see the errors on these related models by doing model.errors.content or model.errors.messages but if I want to check a particular attribute on a related model in order to highlight field errors I get null or undefined values.
See below screen shot for more info
Model After error: In this object i am getting the attribute and message but i use model.get("errors.phone"
Aucun commentaire:
Enregistrer un commentaire