-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
add 'guid' to list of exception to filter out #17668
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
Conversation
@@ -93,6 +93,13 @@ public function getEntitiesByIds($identifier, array $values) | |||
$values = array_values(array_filter($values, function ($v) { | |||
return (string) $v === (string) (int) $v; | |||
})); | |||
} elseif ('guid' === $metadata->getTypeOfField($identifier)) { | |||
$parameterType = Connection::PARAM_INT_ARRAY; |
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.
this is wrong. You should not change this to INT_ARRAY. Uuids are not bindable as integers
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.
I'm open to suggestions. What should I do?
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.
Well, the binding type should be a string array, not an int array
I think this one should be closed for the same reasons #17494 was closed as well. |
Well, my proposal is similar to the one in #17494, but much simpler: I'd like not to fail due to a common situation. The situation is an |
LGTM now 👍 |
Thank you @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 #14583 (comment) Commits ------- 0de86ff add 'guid' to list of exception to filter out
See #14583 (comment)