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/doctrine-bundle 1.12.3 support #4592

Open
nanasess opened this issue Jun 25, 2020 · 2 comments
Open

doctrine/doctrine-bundle 1.12.3 support #4592

nanasess opened this issue Jun 25, 2020 · 2 comments
Labels
dependencies Pull requests that update a dependency file
Milestone

Comments

@nanasess
Copy link
Contributor

概要(Overview)

期待する内容(Expect) or 要望 (Requirement)

再現手順(Procedure)

composer update "symfony/*"
composer require doctrine/doctrine-bundle "1.12.3"
bin/phpunit tests/Eccube/Tests/Web/Admin/Product/CategoryContorllerTest.php

環境 (environment)

  • EC-CUBE: 4.0.4
  • PHP: 7.4.5
  • DB:
    • PostgreSQL 9.6.18

関連情報 (Ref)

@nanasess nanasess mentioned this issue Jun 25, 2020
11 tasks
@okazy okazy added the dependencies Pull requests that update a dependency file label Jun 25, 2020
@okazy okazy added this to the 4.0.x milestone Jun 25, 2020
@okazy
Copy link
Contributor

okazy commented Jun 26, 2020

原因の特定ありがとうございます!

@chihiro-adachi chihiro-adachi mentioned this issue Jun 26, 2020
11 tasks
@nanasess
Copy link
Contributor Author

kernel.reset で EntityManager::clear() がコールされるようになったのが原因の模様
https://symfony.com/doc/current/reference/dic_tags.html#kernel-reset
テストが完了する前に clear で rollback している可能性

おそらく、ユニットテスト固有の問題なので、 E2Eテストに移植すれば問題なさそう

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants