[4.1] - "unique" validation on an object at wrong table #1776
-
Hey you! I'm making a validation on an object "company" that its table is called "companies", the "unique" validation is looking in the wrong table: "company" instead "companies". I don't know how to procedded. The image explains the situation: Any help would be nice. |
Beta Was this translation helpful? Give feedback.
Answered by
thetutlage
Oct 21, 2020
Replies: 1 comment 1 reply
-
It's looking at the right table but the wrong field. You can define the field name yourself. unique:companies,cnpj |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rhadamez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's looking at the right table but the wrong field. You can define the field name yourself.