-
-
Notifications
You must be signed in to change notification settings - Fork 957
chore: Run PHPUnit tests on Mysql and Pgsql #7680
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
base: 4.2
Are you sure you want to change the base?
Conversation
241f456 to
25649a4
Compare
fee7617 to
87a8329
Compare
87a8329 to
6a74b86
Compare
d02401d to
dd02dd9
Compare
dd02dd9 to
ddd54ee
Compare
| } | ||
|
|
||
| public ?int $totalQuantity; | ||
| public int|string|null $totalQuantity; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends on the DB it's an int or a string
| filter: new OrderFilter(), | ||
| property: 'createdAt', | ||
| filterContext: OrderFilterInterface::NULLS_ALWAYS_FIRST, | ||
| filterContext: ['nulls_comparison' => OrderFilterInterface::NULLS_ALWAYS_FIRST], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't correctly configured/tested ; I updated it.
| filter: new OrderFilter(), | ||
| property: 'createdAt', | ||
| filterContext: OrderFilterInterface::NULLS_ALWAYS_FIRST, | ||
| filterContext: ['nulls_comparison' => OrderFilterInterface::NULLS_ALWAYS_FIRST], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NB: this was "tested" but in reality this is not implemented in ODM
|
|
||
| #[Assert\Range(min: 1, max: 10)] | ||
| #[ORM\Column] | ||
| #[ORM\Column(name: '_range')] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
range is a reserved property in Mysql/Postgres
c304f3b to
2e30b2d
Compare
Hi @soyuka ; since I'm playing with some driver-depends features like
I think we need running PHPUnit with Mysql/Pgsql too and not only Sqlite @soyuka