Skip to content

Finder doesn't work with UUID primary columns #120

@kodoa-dev

Description

@kodoa-dev

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions