Git Product home page Git Product logo

Comments (10)

op-euga avatar op-euga commented on July 3, 2024

same problem here

from doctrineextensions.

mbabker avatar mbabker commented on July 3, 2024

You are trying to use ORM 3.x which this package is not yet compatible with. Please downgrade to ORM 2.x.

from doctrineextensions.

adam314315 avatar adam314315 commented on July 3, 2024

@mbabker Ok. Just tested. It works with the downgrade but why is it now defined in the standard symfony sf 7.0 installation if not working with the doctrine extensions ?

from doctrineextensions.

mbabker avatar mbabker commented on July 3, 2024

Symfony itself is compatible with ORM 3.x, so when you set up a new app, then add the ORM, Composer will grab the latest compatible versions. Adding this library afterwards ends up creating the incompatible dependency tree (this package didn't have a high version conflict blocking ORM 3.x until the latest release, so Composer is installing an older version where that conflict doesn't exist; it would've been good to have that conflict sooner but you can't go back in time and fix this stuff).

I get it's all less than optimal, and there are plenty of issues about it, but because of how this package integrates with the ORM, there's just a lot of small things that have to be fixed up to make it work and I'm not aware of if anyone is contributing to that with any sponsored time (I know all my contributions are in my free time).

from doctrineextensions.

mbabker avatar mbabker commented on July 3, 2024

I just looked at some old PRs today and this particular compat issue is fixed in this package's 3.15 release via #2765, so this issue can be closed out. There are still some other things to fix, but this specific item isn't one of them.

from doctrineextensions.

c-vandendyck-kbr avatar c-vandendyck-kbr commented on July 3, 2024

@mbabker I tried to use the 3.15 version but got errors.
I did:
composer require gedmo/doctrine-extensions:3.15

The errors:

The "3.15" constraint for "gedmo/doctrine-extensions" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update gedmo/doctrine-extensions
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - doctrine/orm is locked to version 3.1.3 and an update of this package was not requested.
    - gedmo/doctrine-extensions v3.15.0 conflicts with doctrine/orm <2.14.0 || 2.16.0 || 2.16.1 || >=3.0.
    - Root composer.json requires gedmo/doctrine-extensions 3.15 -> satisfiable by gedmo/doctrine-extensions[v3.15.0].

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

from doctrineextensions.

mbabker avatar mbabker commented on July 3, 2024

OK, so there are a couple of things in your case.

  1. Just as the first line in the output says, the version constraint your using is less than optimal as it doesn't match to an exact version nor does it have any SemVer range constraints. composer require gedmo/doctrine-extensions:^3.15 would be the better command to use here.

  2. Also as noted in the output, you're trying to install this package's 3.15 release, and it explicitly conflicts against doctrine/orm >= 3.0, so you also need to downgrade the ORM to 2.x to be able to use this package. If you add the -w flag to the above command, that may take care of that issue (depending on whether you've got the ORM listed in your composer.json or not). If that doesn't fix it, you'll probably need to manually edit your composer.json file to make sure doctrine/orm ^2.19 is being installed.

from doctrineextensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.