-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
SchemaValidator is complaining about BIGINT with PHP typehint int
#11377
Comments
I'd say it is
You want to make a recommendation about entities in the DBAL docs? |
Well, what's currently said at https://www.doctrine-project.org/projects/doctrine-dbal/en/4.0/reference/types.html#bigint is OK IMO. So what I really mean in this issue is that this line needs to be changed: https://github.com/doctrine/orm/blob/3.1.x/src/Tools/SchemaValidator.php#L56 |
The best way to find out is to try I guess. |
Well then - see #11396 |
Bug Report
Summary
With this mapping:
... Symfony Profiler is reporting a Mapping Error:
Which is kinda right according to the docs at https://www.doctrine-project.org/projects/doctrine-dbal/en/4.0/reference/types.html#bigint :
But according to #11073 (comment) , a BIGINT should be typehinted as
int
:So what is the recommended typehint now?
I think there should be a recommendation in the docs, maybe I can add it to doctrine/dbal#6336
The text was updated successfully, but these errors were encountered: