DoctrineExtensions icon indicating copy to clipboard operation
DoctrineExtensions copied to clipboard

XML schema mapping URL

Open l3pp4rd opened this issue 5 months ago • 1 comments

Hi, I'm the initial author of this source code and I see that you still have references in readme.md for the old XML schema URLs to my local server in Lithuania http://gediminasm.org/schemas/orm/doctrine-extensions-mapping

Please change it to local github url, so the ones still using these, could migrate at some point. I'm considering to shut down the server in few months or so.

l3pp4rd avatar Jun 19 '25 08:06 l3pp4rd

I think we just need to document a xsi:schemaLocation element since changing the URL, which is used as the XML namespace, would be a B/C break. So the docs and test fixtures would need to be updated to be something like this:

<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd
                                      http://gediminasm.org/schemas/orm/doctrine-extensions-mapping https://raw.githubusercontent.com/doctrine-extensions/DoctrineExtensions/refs/heads/main/schemas/orm/doctrine-extensions-mapping-2-2.xsd"
>
<!-- entity mapping -->
</doctrine-mapping>

mbabker avatar Jun 19 '25 13:06 mbabker

Alternatively, we could document using a relative path to the local file stored in the vendor folder as location.

stof avatar Nov 20 '25 09:11 stof