l3pp4rd/DoctrineExtensions — Issue #267: translatable : strange cast error when using the query hint way
Author: pojem
Created: 2012-02-16 22:28:28+00:00
State: open

Hi
Using the query hint way as explained at
https://github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/translatable.md#orm-query-hint
The SQL query returns a cast error between the integer id of the entity and the string(64) foreign_key of the translation table. I resolved it changing the foreign_key type to integer, in the mapping file Resources / config / doctrine / AbstractTranslation.orm.xml, but I suppose that isn't the good way !