Fix for support on different Doctrine ORM versions#414
Fix for support on different Doctrine ORM versions#414pimjansen merged 5 commits intoFakerPHP:mainfrom icanhazstring:fix/413
Conversation
|
This is a BC which we do not allow for v1. Can we ensure that both are supported here? |
|
@pimjansen I can try and do the same doctrine did and add a |
Correct. For v2 we will remove it from core and can be a community driven extension instead. |
|
Apparently, psalm is failing in CI but not on my machine using the same PHP version. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 1 week if no further activity occurs. Thank you for your contributions. |
|
Hope it will be fixed soon, thanks :) |
|
@icanhazstring the pipeline is failing, can you review this? |
@pimjansen see this comment. |
|
No idea but ci is leading so needs to be green |
|
@icanhazstring Running psalm locally is red for me too, works with this psalm.baseline.xml: https://gist.github.com/krsriq/cc1c3ceea2886aa4b93a2b1825a32e7f |
|
@krsriq then there is something weird with the local setup 🤷♂️ Guess I'll just add your baseline then. |
Add doctrine/orm as dev dependency to avoid baseline entries.
|
After all these years. |
|
@icanhazstring is this ready now? |
|
@bram-pkg checked it again against my problem. Fixed for me 👍 |
pimjansen
left a comment
There was a problem hiding this comment.
LGTM, also test on 1.3 and 2.x went fine
|
This PR caused an issue on projects that don't utilize It seems that FakerPHP expect |
|
It was added to But the other case you are correct. Will create a quick fix for that. |
|
@crynobone fix has been applied in main |
Add conflict to doctrine/persistence below 1.4 and use correct persistence classes
What is the reason for this PR?
Fix an issue with
doctrine/persistnceAuthor's checklist
Summary of changes
Add a conflict intocomposer.jsonfordoctrine/persistencebelow version 1.4composer.jsonfordoctrine/ormAdddoctrine/ormas dev requirement to avoid static analysis baseline entriesUse new classes ofdoctrine/ormanddoctrine/persistenceforFaker\ORM\Doctrinenamespaceclass_aliasforClassMetadataandObjectManagerReview checklist