Skip to content
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

Doctrine schema validation fails when Gedmo timestampable is used with "doctrine/orm": "2.14.2" #390

Closed
plewandowski opened this issue Apr 13, 2023 · 1 comment

Comments

@plewandowski
Copy link

plewandowski commented Apr 13, 2023

Can be reproduced with PluginSkeleton v1.12.2
It seems that schema validation fails for any project where dependencies were doctrine/orm we bumped up to 2.14.2.

 libxml error: Element '{http://gediminasm.org/schemas/orm/doctrine-extensions-mapping}sortable-position': No matching global element declaration available, but demanded by the strict wildcard.  
   in src/Resources/config/doctrine/TaxonGalleryItem.orm.xml at line 20    

It seems to work ok with 2.14.1.

Workaround?
Potential solution can be avoiding 2.14.2 (if this is doctrine bug) or finding root cause. I did not investigated it deeper yet.
I solved it so far with:

"conflict": {
        "doctrine/orm": "2.14.2"
    },

Simple steps to reproduce:
For project using Sylius/PluginSkeleton v1.12.2
and define doctrine entities in xml
and use gedmo:timestampable tag within a field tag
run:

rm -fr composer.lock && composer install --no-scripts --no-plugins --no-cache
(cd tests/Application && bin/console doctrine:schema:validate) # same effect with schema create or update
@plewandowski
Copy link
Author

plewandowski commented Apr 15, 2023

it seems that problem is solved already:
doctrine/DoctrineBundle#1643

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant