I've opened an issue in Jira but would like to hear some users opinion: What I'd like to propose is a way of easily extending the metadata information by defining custom tags in mapping files and then add them to Metadata class.
So the current problem is this: I want to add custom tags to doctrine metadata files, and then get this tags on a loadClassMetadata listener in order to modify the mapping. Currently the only workaround is parsing this custom tags in the loadClassMetadata listener, going through all the files again. I was thinking of having a new 'extraMetadata' array field in ClassMetadata, every time a driver parses a configuration, throw a new event with the read configuration (being xml, yaml...etc.). A custom listener will parse it according to the new custom tags and return an array that will beappended to the 'extraMetadata' array field in ClassMetadata. Then, on the loadClassMetadata listener we retrieve this 'extraMetadata' configuration information array, and modify the mapping as we want. Does this make sense? -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
