mongodb-odm icon indicating copy to clipboard operation
mongodb-odm copied to clipboard

Allow elements from other namespaces

Open malarzm opened this issue 1 year ago • 2 comments

This is how we should ideally allow extensions to be combined with ODM's schema. Sadly, this does not work and it seems work on extensions' maintainers is needed anyway :(

Cross referencing https://github.com/doctrine-extensions/DoctrineExtensions/issues/2318

malarzm avatar Jan 16 '24 20:01 malarzm

Sadly, this does not work and it seems work on extensions' maintainers is needed anyway

I think it's because the extension xsd file is not provided here: https://github.com/doctrine/mongodb-odm/blob/c9b7f6bdec37f32c2b91637adeee52949e7596e6/lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L718-L720

You'd have to let the user provide a schema combining both xsd files as in https://github.com/doctrine/orm/issues/11117#issuecomment-1894492234

greg0ire avatar Jan 16 '24 21:01 greg0ire

@greg0ire thanks for all the pointers! I'll prolly join you in https://github.com/doctrine/orm/issues/11123 soon

malarzm avatar Jan 16 '24 21:01 malarzm