[Flow] Problem with Gedmo Translatable Doctrine extension and separate translation entity
Dominique Feyer
dfeyer at ttree.ch
Tue Feb 11 23:08:24 CET 2014
Maybe the gist from Bastian can help you
https://gist.github.com/search?q=gedmo+flow
Bests,
ttree sarl
Dominique Feyer
TYPO3 Addict
Rue du Valentin 34 et demi
CH - 1004 Lausanne
Téléphone +41 21 312 36 35
www.ttree.ch | twitter <http://twitter.com/ttreeagency> |
linkedin<http://www.linkedin.com/company/ttree/>
Plan d'accès: http://g.co/maps/4yu6t
2014-02-11 9:24 GMT+01:00 Pavlina Drosos <pavlinadrosos at gmail.com>:
> 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
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>
More information about the Flow
mailing list