You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to implement Structure with validation rules, and validate this instance. Currently, embedded documents validates only on Document::set() or any method in Document that calls Structure::prepareToStore. Also it may be done manually before adding in any way to document.
Validating of embedded documents on call Document::isValid() is waiting to implement.
I found a way to validate a profile.years_exp (<--- so you have to write exactly like that) but not able to validate addresses.n.street where n stands for index of an element.
yes. If emdemmed document can be accessed directly, validation may be configured in document. To validate list of embedded documents you need to have ebbedded document class, extended from Structure. Currently this is the only way.
How do I validate sub document field? for example if I have document like this:
In the above document I need
street
from addresses andyears_exp
from profile must be filled by the user.So how do i validate these fields?
The text was updated successfully, but these errors were encountered: