Exercise/FOQElasticaBundle — Issue #74: ElasticSearch and Doctrine Extensions translatable
Author: jorji
Created: 2012-02-22 10:52:53+00:00
State: open

Hi,
I am using Doctrine Extensions Translatable and Elastic search. So for it worked well for default locale, but when i try to
insert translation it bumps into an error:

```
ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=2): [91, 93]]

Elastica_Exception_Response: ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=2): [91, 93]] (uncaught exception) at /var/www/site.com/Symfony/vendor/elastica/lib/Elastica/Transport/Http.php line 103
```

second locale is en:
```
$article = $em->getRepository('WebsiteSharedBundle:News')->find(1);
$article->setTitle('News 1 in EN');
$article->setContent('News 1 in EN');
$article->setTranslatableLocale('en_us');
$em->persist($article);
$em->flush();
```