Parent defined rules not working in child forms
gdiazderadaa opened this issue · 4 comments
Hi there,
Are the parent rules supposed to be inherited by the child class? I'm assuming so since the properties theirselves are. However that's not working for me.
Thanks
Hello!
I saw no need to inherit the parent rules, because the save and validation methods of the child class call the methods of the parent class, so the parent rules affect the parent properties already and the getErrors method return all the errors in the two classes when it is called.
Hello!
Then I may be missing something, because the client-side validation of the child class doesn't work for inherited properties if the rules are setup in the parent class...
You are right in that. The client side validation doesn't work, because the parent rules are not inherited by default. I will think about it and fix the issue.
Hi!
Has any solution been defined for this problem?
Force the merge with the parent is the best solution?
Thanks!