Making a @Gedmo\Locale field in translatable entity should by implemented in version 3.2.7.1319 (according your comment). So how to use it?
After export to ORM i get this:
<?php
namespace AlagenexBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;
/**
* @ORM\Entity
* @ORM\Table(name="category")
*/
class Category implements Translatable
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="category_id_seq")
*/
private $id;
/**
* @ORM\Column(type="string", length=100, nullable=false)
* @Gedmo\Translatable
*/
private $label;
/**
* @ORM\Column(nullable=true)
*/
private $locale;
}
First problem is that locale field has no @Gedmo\Locale annotation. Second is that it has @ORM\Column annotation. What am i doing wrong?