-
Notifications
You must be signed in to change notification settings - Fork 97
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
Autogenerated id column should be positive-int #567
Comments
|
@janedbal how is it related to my issue? |
If support would be added, it needs to be driver-aware. |
Still don't understand. Is there any database that uses non-positive id? |
@javaDeveloperKid database will still allow you to write your own value in the field instead of using the default generated value, which is then only constrained by the type of the field (so you can write |
I want to mark a Doctrine entity $id field that is autogenerated by database engine as
@var positive-int
. However PHPStan complains.PHPStan output:
Property App\Rma\Domain\Rma\Rma::$id type mapping mismatch: database can contain int but property expects int<1, max>|null.
The text was updated successfully, but these errors were encountered: