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

Issue after updating symfony dependencyInjection from 6.2 to 6.3 #3

Closed
SylvainBreton opened this issue Sep 7, 2023 · 3 comments
Closed

Comments

@SylvainBreton
Copy link

SylvainBreton commented Sep 7, 2023

Hi,
I updated our project from symfony 6.2 to 6.3.

Functionnal tests fail after this update with the error " Multiple non-persisted new entities were found through the given association graph".

After some investigation the instance of the entity manager of the test (using grabFromRepository) is different from the one used in services in scr.

The issue started exactly after updating those 3 libraries:

  • phpunit/php-code-coverage (10.1.3 => 10.1.4)
  • phpunit/php-text-template (3.0.0 => 3.0.1)
  • symfony/dependency-injection (6.2.13 => v6.3.4)
  • symfony/framework-bundle (6.2.13 => v6.3.4)
  • symfony/http-kernel (6.2.13 => v6.3.4)
  • symfony/proxy-manager-bridge (6.2.13 => v6.3.4)
  • symfony/security-bundle (6.2.13 => v6.3.4)
  • symfony/security-http (6.2.13 => v6.3.4)
  • instaling symfony/clock (v6.3.4)

I strongly suspect that the upgrade causing the issue is symfony/dependency-injection because of the above mentioned issue of entity manager.

Here is our project repository : https://gitlab.com/eternaltwin/mush/mush (dependency update has not been pushed though)

I am new at this so if you need more information feel free to ask as well as clarification of what I wrote.
Also if this is a stupid error on our side sorry for opening this issue.

@cmnemoi
Copy link

cmnemoi commented Sep 7, 2023

Here is our project repository : https://gitlab.com/eternaltwin/mush/mush (dependency update has not been pushed though)

You can checkout to the relevant branch if needed : https://gitlab.com/eternaltwin/mush/mush/-/tree/update-dependancies?ref_type=heads

@SylvainBreton
Copy link
Author

After looking deeper in the project I think this is a symfony issue and not codeception.
It look very similar to this old issue : symfony/symfony#28869

Feel free to close this issue

@TavoNiievez TavoNiievez transferred this issue from Codeception/module-doctrine2 Feb 17, 2024
@TavoNiievez
Copy link
Member

Closing as there is no evidence that it is a bug in the module code.

Thank you @SylvainBreton

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

3 participants