-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
BC break for tilde fields #1634
Comments
Versions after 2.4.16 seem to be affected by this. |
@kix - please give some more information, i.e. exact field name and the error you're getting. |
@vbartusevicius, here's the YAML config: UserBundle\Entity\OAuth:
type: entity
table: user_oauth
id:
id:
type: integer
generator:
strategy: AUTO
fields:
provider: ~
identifier: ~
accessToken:
column: access_token
nullable: true
refreshToken:
column: refresh_token
nullable: true
manyToOne:
user:
targetEntity: UserBundle\Entity\User
joinColumn:
nullable: false
inversedBy: oauthAccounts
uniqueConstraints:
-
columns: [user_id, provider]
-
columns: [provider, identifier] And the error I get is:
|
Added PRs to |
@vbartusevicius, thanks for fixing this so quick :) |
Well, I left a major bug there... :) |
Hello There You left the same bug in other extensions, Please consider resolving |
After this commit, having a tilde (
~
) in an entity's field configuration leads to a fatal error, as the extracted method has anarray
typehint, yet the tilde translates tonull
.The text was updated successfully, but these errors were encountered: