-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validateFullMetadata #199
Comments
Hi, if you use Mapping extension. documentation with example is here validateFullMetadata is an interface method, and is used to ensure collected metadata is valid. This is usable in cases where metadata is merged from MappedSupperclass and maybe some inherited classes. The best example would be, if you have tree metadata fields in mappedsupperclass and there is a tree class which extends this mappedsuperclass, in that case all metadata needs to be validated when tree class is being mapped. |
Thanks for answer! Last question. |
yes, you can leave it empty, its just for validation, and required as an interface method. Because extension triggers it for all metadata drivers. |
Ok now its clear. But why validateFullMetadata() method from driver Chain (file: Gedmo/Mapping/Driver/Chain.php) its not simillar to readExtendedMetadata() method? Shouldnt there be a loop through all drivers that call validateFullMetadata at each driver? |
Hm, thats a good catch, I guess this method could be removed at all. And all classes which are not a mapped superclass validaded |
Hi,
can somebody explains me why this method in ChainDriver is empty and when it is triggered?
I would be also gratefull for short description general purpose (or working example) of this method because I cant get the point of it from code comments.
I didn't know where to post this question so sorry if it should not be an issue.
The text was updated successfully, but these errors were encountered: