-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] [DoctrineBridge] Possible regression in ManagerRegistry::getManagerForClass() #4966
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
Comments
doctrine/common#166 This pull request should fix it. |
Great! |
I'll close this since this seems to be a Doctrine issue. |
Well, it is a regression in Symfony because getManagerForClass does not support the aliased notation currently. I hope @beberlei will merge my PR in Common and backport it in the older branches, otherwise we will have to overwrite the method in the bridge. |
So we can reopen this issue? |
Done |
This is fixed when using doctrine 2.3 (the 2.3 branch, not the 2.3-beta1 release which was older) |
Should we bump the requirements of DoctrineBridge? |
Probably yes, we already require an |
@bschussek it is fine for me. The goal is to release doctrine 2.3 approximately at the same time than Sf 2.1, and the upgrade path is less painful for doctrine (there is only BC breaks for people dealing with the doctrine internals, so most users will not be affected). |
@stof Could you do this please? I'm unsure as to which exact version to include. |
@bschussek done |
@stof Thanks! |
For people reading it, the discussion has been continued on symfony/symfony-standard#373 |
I'm not sure but I think there is a regression introduced yesterday at commit 17ca9b6.
All my forms were working before I ran
composer.phar update
command.After having updated my codebase, I had to update my entity type fields in all my forms to use a FQCN everywhere instead of the Doctrine entity shortcut name. In other words, before the update I had:
Then I updated Symfony and the
ManagerRegistry::getManagerForClass()
method modified yesterday in commit 17ca9b6 don't translate my shortcut class name to its FQCN anymore. So I'm forced to use a FQCN instead in all my forms to make it form again:So I suspect a regression with yesterday's commit.
The text was updated successfully, but these errors were encountered: