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/orm 2.18.0 causing exception with old file versions #7269

Open
popoplanter opened this issue Feb 8, 2024 · 2 comments
Open

doctrine/orm 2.18.0 causing exception with old file versions #7269

popoplanter opened this issue Feb 8, 2024 · 2 comments
Labels
Bug Error or unexpected behavior of already existing functionality

Comments

@popoplanter
Copy link
Contributor

popoplanter commented Feb 8, 2024

Q A
Sulu Version 2.5.12
PHP Version 8.1
DB Version mysql 8.0.27
Browser Version all

Actual Behavior

When updating to doctrine/orm 2.18.0 an exception occurs on Medias with multiple file versions:

The given entity of type 'Sulu\Bundle\TagBundle\Entity\Tag' (Sulu\Bundle\TagBundle\Entity\Tag@1553) has no identity/no id values set. It cannot be added to the identity map.

Steps to Reproduce

Update to doctine/orm 2.18.0

Possible Solutions

This can be avoided by defining a conflict entry in composer.json to enforce an older version but this should not be the solution to the problem as newer doctrine/orm versions should be supported

    "conflict": {
        "doctrine/orm": ">= 2.16.0"
    },
@popoplanter popoplanter added the Bug Error or unexpected behavior of already existing functionality label Feb 8, 2024
@alexander-schranz
Copy link
Member

Look like this is related to doctrine/orm#11100.

Not sure yet where we may call addSelect twice 🤔

@Prokyonn
Copy link
Member

doctrine/orm#11194 would fix the issue, but unfortunately it is still not merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants