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

[Translateable] PersonalTranslation doesn't work when loading translations for entities using UUID for ID #1851

Closed
dkarlovi opened this issue Nov 23, 2017 · 1 comment
Labels
Bug A confirmed bug in Extensions that needs fixing. Stale Translatable

Comments

@dkarlovi
Copy link

Basically, if you haven't done a join to translations, it will try to do it later, like so

                $q = $em->createQuery($dql);
                $object = $object->getId()->getBytes();
                $q->setParameters(compact('object', 'locale'));
                $result = $q->getArrayResult();

This fails because of ramsey/uuid-doctrine#18 (probable root cause is doctrine/orm#4632) because UUID object is not serialized properly.

If I add

                $object = $object->getId()->getBytes(); // add this
                $q->setParameters(compact('object', 'locale'));

it works as expected. This is not a good solution obviously, Doctrine would need to somehow fix their serialization.

@phansys phansys added the Bug A confirmed bug in Extensions that needs fixing. label Nov 6, 2021
@github-actions
Copy link

github-actions bot commented May 5, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label May 5, 2022
@github-actions github-actions bot closed this as completed Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A confirmed bug in Extensions that needs fixing. Stale Translatable
Projects
None yet
Development

No branches or pull requests

3 participants