PersonTranslation.php 611 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Translator\Fixture;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Translator\Entity\Translation;
  5. /**
  6. * @ORM\Table(
  7. * indexes={@ORM\Index(name="translations_lookup_idx", columns={
  8. * "locale", "translatable_id"
  9. * })},
  10. * uniqueConstraints={@ORM\UniqueConstraint(name="lookup_unique_idx", columns={
  11. * "locale", "translatable_id", "property"
  12. * })}
  13. * )
  14. * @ORM\Entity
  15. */
  16. class PersonTranslation extends Translation
  17. {
  18. /**
  19. * @ORM\ManyToOne(targetEntity="Person", inversedBy="translations")
  20. */
  21. protected $translatable;
  22. }