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

Something messed up with the package versions #6888

Open
1ed opened this issue Dec 28, 2024 · 1 comment
Open

Something messed up with the package versions #6888

1ed opened this issue Dec 28, 2024 · 1 comment

Comments

@1ed
Copy link

1ed commented Dec 28, 2024

API Platform version(s) affected: 3.4.13

The api-platform/doctrine-orm:^3.4.13 contains files from 4.1.0-alpha1

Description

as you can see in the picture and in the repo https://github.com/api-platform/doctrine-orm/blob/v3.4.13/Filter/AbstractFilter.php the abstract filter class contains references (ManagerRegistryAwareInterface) to an interface which is not exists for this version, only added in api-platform/doctrine-orm@b4f6e50 for 4.1-dev.

In the main repo it seems ok https://github.com/api-platform/core/blob/v4.0.13/src/Doctrine/Orm/Filter/AbstractFilter.php

I get this error when trying to update a project to 3.4

Invalid service "api_platform.doctrine.orm.order_filter": class "ApiPlatform\Doctrine\Common\Filter\ManagerRegistryAwareInterface" not found while loading "ApiPlatform\Doctrine\Orm\Filter\OrderFilter".

Installed package versions:

api-platform/doctrine-common         4.0.13  Common files used by api-platform/doctrine-orm and api-platform/doct...
api-platform/doctrine-orm            3.4.13  Doctrine ORM bridge
api-platform/documentation           4.0.13  API Platform documentation controller.
api-platform/http-cache              4.0.13  API Platform HttpCache component
api-platform/hydra                   4.0.13  API Hydra support
api-platform/json-schema             4.0.13  Generate a JSON Schema from a PHP class
api-platform/jsonld                  4.0.13  API JSON-LD support
api-platform/metadata                4.0.13  API Resource-oriented metadata attributes and factories
api-platform/openapi                 4.0.13  Models to build and serialize an OpenAPI specification.
api-platform/serializer              4.0.13  API Platform core Serializer
api-platform/state                   4.0.13  API Platform State component 
api-platform/symfony                 3.4.13  Symfony API Platform integration
api-platform/validator               4.0.13  API Platform validator component

How to reproduce

symfony new apip
cd apip
symfony composer req api-platform/symfony:^3.4 api-platform/doctrine-orm:^3.4

Possible Solution
As the main repository seems good, this should be an issue with the sub-tree splits. IMHO a possible solution would be to use the same tested tools and methods as the Symfony team, if it is possible and not using it already.

Additional Context

Screenshot from 2024-12-28 12-10-19

@vinceAmstoutz
Copy link
Contributor

Probably related to #6775 (comment)

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

2 participants