PersonCustomTranslation.php 633 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="pers_translations_lookup_idx", columns={
  8. * "locale", "translatable_id"
  9. * })},
  10. * uniqueConstraints={@ORM\UniqueConstraint(name="pers_lookup_unique_idx", columns={
  11. * "locale", "translatable_id", "property"
  12. * })}
  13. * )
  14. * @ORM\Entity
  15. */
  16. class PersonCustomTranslation extends Translation
  17. {
  18. /**
  19. * @ORM\ManyToOne(targetEntity="PersonCustom", inversedBy="translations")
  20. */
  21. protected $translatable;
  22. }