Allow locale as an association entity

This allows to have ManyToOne association as location

```
/**
 * @var \Acme\Locale $locale
 *
 * @ORM\ManyToOne(targetEntity="Locale")
 * @ORM\JoinColumn(name="locale", referencedColumnName="id", nullable=false)
 */
protected $locale;
```