PersonalArticleTranslation.php 496 B

123456789101112131415161718
  1. <?php
  2. namespace Translatable\Fixture\Personal;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Translatable\Entity\MappedSuperclass\AbstractPersonalTranslation;
  5. /**
  6. * @ORM\Table(name="article_translations")
  7. * @ORM\Entity
  8. */
  9. class PersonalArticleTranslation extends AbstractPersonalTranslation
  10. {
  11. /**
  12. * @ORM\ManyToOne(targetEntity="Article", inversedBy="translations")
  13. * @ORM\JoinColumn(name="object_id", referencedColumnName="id", onDelete="CASCADE")
  14. */
  15. protected $object;
  16. }