bug #17668 add 'guid' to list of exception to filter out (garak)
This PR was squashed before being merged into the 2.3 branch (closes #17668).
Discussion
----------
add 'guid' to list of exception to filter out
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #14583
| License | MIT
| Doc PR | none
See https://github.com/symfony/symfony/issues/14583#issuecomment-179262543
Commits
-------
0de86ff
add 'guid' to list of exception to filter out
This commit is contained in:
commit
59362a95c2
@ -93,6 +93,13 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
|
||||
$values = array_values(array_filter($values, function ($v) {
|
||||
return (string) $v === (string) (int) $v;
|
||||
}));
|
||||
} elseif ('guid' === $metadata->getTypeOfField($identifier)) {
|
||||
$parameterType = Connection::PARAM_STR_ARRAY;
|
||||
|
||||
// Like above, but we just filter out empty strings.
|
||||
$values = array_values(array_filter($values, function ($v) {
|
||||
return (string) $v !== '';
|
||||
}));
|
||||
} else {
|
||||
$parameterType = Connection::PARAM_STR_ARRAY;
|
||||
}
|
||||
|
Reference in New Issue
Block a user