Skip to content
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

Finder doesn't work with UUID primary columns #120

Open
aesislabs opened this issue Oct 8, 2024 · 0 comments
Open

Finder doesn't work with UUID primary columns #120

aesislabs opened this issue Oct 8, 2024 · 0 comments

Comments

@aesislabs
Copy link

Describe the bug
Cannot use UUID based tables because of createNativeQuery in CollectionFinder.php

To Reproduce
Steps to reproduce the behavior:
Just use a UUID as primary key in an index


Just use quotes in createNativeQuery to make it work

$query           = $this->em->createNativeQuery('SELECT * FROM '.$tableName.' WHERE '.$primaryKeyInfos['entityAttribute'].' IN ("'.implode('", "', $ids).'") ORDER BY FIELD(id,"'.implode('", "', $ids).'")', $rsm);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant