Oracle and raw uuid identifiers #9389
Unanswered
smarley
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
TL;DR: why i can't use
convertToDatabaseValueSQL
with identifiers? Is there any workarounds?I have a project with doctrine + oracle + uuid identifiers. For handling uuid used custom type, and uuid stored as RAW type.
All queries produced by
$em->flush()
after updating entities fields or$repository->find($id)
is likeand this produces full table scan, ignoring index (fair enough):
As i see, Doctrine can't use
convertToDatabaseValueSQL
for identifiers. I would really appreciate some advice on how to deal with this situation.With
and QueryBuilder query like this
everything work just fine, produces
WHERE id = HEXTORAW(:param2)
with INDEX RANGE SCANBeta Was this translation helpful? Give feedback.
All reactions