-
-
Notifications
You must be signed in to change notification settings - Fork 958
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?
Changes from all commits
3233d54
2177de1
6a74b86
12a1338
ddd54ee
b103036
2e30b2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,7 +62,7 @@ public static function handleLinks(QueryBuilder $queryBuilder, array $uriVariabl | |
| ->addGroupBy(\sprintf('%s.id', $rootAlias)); | ||
| } | ||
|
|
||
| public ?int $totalQuantity; | ||
| public int|string|null $totalQuantity; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Depends on the DB it's an int or a string |
||
|
|
||
| #[ORM\Id] | ||
| #[ORM\GeneratedValue] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,17 +38,17 @@ | |
| 'date_null_always_first' => new QueryParameter( | ||
| filter: new OrderFilter(), | ||
| property: 'createdAt', | ||
| filterContext: OrderFilterInterface::NULLS_ALWAYS_FIRST, | ||
| filterContext: ['nulls_comparison' => OrderFilterInterface::NULLS_ALWAYS_FIRST], | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It wasn't correctly configured/tested ; I updated it. |
||
| nativeType: new BuiltinType(TypeIdentifier::STRING) | ||
| ), | ||
| 'date_null_always_first_old_way' => new QueryParameter( | ||
| filter: new OrderFilter(properties: ['createdAt' => OrderFilterInterface::NULLS_ALWAYS_FIRST]), | ||
| filter: new OrderFilter(properties: ['createdAt' => ['nulls_comparison' => OrderFilterInterface::NULLS_ALWAYS_FIRST]]), | ||
| property: 'createdAt', | ||
| nativeType: new BuiltinType(TypeIdentifier::STRING) | ||
| ), | ||
| 'order[:property]' => new QueryParameter( | ||
| filter: new OrderFilter(), | ||
| filterContext: OrderFilterInterface::NULLS_ALWAYS_FIRST, | ||
| filterContext: ['nulls_comparison' => OrderFilterInterface::NULLS_ALWAYS_FIRST], | ||
| ), | ||
| ], | ||
| )] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,7 @@ class NumericValidated | |
| private ?int $id = null; | ||
|
|
||
| #[Assert\Range(min: 1, max: 10)] | ||
| #[ORM\Column] | ||
| #[ORM\Column(name: '_range')] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. range is a reserved property in Mysql/Postgres |
||
| public int $range; | ||
|
|
||
| #[Assert\GreaterThan(value: 10)] | ||
|
|
||
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