[Flow] Problem with Gedmo Translatable Doctrine extension and separate translation entity
Pavlina Drosos
pavlinadrosos at gmail.com
Tue Feb 11 09:24:31 CET 2014
Hi all,
I am integrating Gedmo Translatable Doctrine extension in my Flow 2.1
package (
https://github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/translatable.md
).
The code of my entity is here: https://gist.github.com/pdrosos/8930978
The translation entity is here: https://gist.github.com/pdrosos/8931011
The Gedmo Translatable doctrine extension is integrated like this:
https://gist.github.com/pdrosos/8931054 I have also tried to integrate it
via eventListeners, there was no difference.
When I use the basic integration with one common translation entity (table)
for all entities, it seems to be OK, but when I try to use a separate
translation entity, I have the following exception when executing ./flow
cache:warmup and ./flow doctrine:migrationgenerate:
Uncaught Exception
*[Syntax Error] Expected PlainValue, got ')' at position 411 in class*
*My\Gallery\Domain\Model\Gallery.*
More Information
Exception code #0
File
/var/sambashare/
dtih.dk/Packages/Libraries/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php
line 41
The problem is with this annotation on line 18 in Gallery.php:
@Gedmo\TranslationEntity(class="My\Gallery\Domain\Model\Translation\GalleryTranslation")
When I remove it, everything seems to be OK.
The same is when I try the Personal translation entity example.
Have someone already used Gedmo Translatable with Flow? I would like to
integrate it and use it with a separate Translation Entity for each
Doctrine Entity and will appreciate any help.
Thank you in advance!
KR,
Pavlina
More information about the Flow
mailing list