| 1 | <?php  | 
            ||
| 12 | final class ArticleTranslation  | 
            ||
| 13 | { | 
            ||
| 14 | use Translation;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @ORM\Id  | 
            ||
| 18 | * @ORM\GeneratedValue  | 
            ||
| 19 | * @ORM\Column(type="integer")  | 
            ||
| 20 | */  | 
            ||
| 21 | protected $id;  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * @var Article  | 
            ||
| 25 | *  | 
            ||
| 26 | * @ORM\ManyToOne(  | 
            ||
| 27 | * targetEntity="Sonata\TranslationBundle\Tests\Fixtures\Traits\ORM\Knplabs\ArticleTranslation",  | 
            ||
| 28 | * inversedBy="translations",  | 
            ||
| 29 |      *     cascade={"persist", "merge"} | 
            ||
| 30 | * )  | 
            ||
| 31 | * @ORM\JoinColumn(name="translatable_id", referencedColumnName="id", onDelete="CASCADE")  | 
            ||
| 32 | */  | 
            ||
| 33 | protected $translatable;  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @ORM\Column(length=128)  | 
            ||
| 37 | */  | 
            ||
| 38 | protected $title;  | 
            ||
| 39 | |||
| 40 | public function getTitle()  | 
            ||
| 44 | |||
| 45 | public function setTitle($title)  | 
            ||
| 49 | |||
| 50 | public static function getTranslatableEntityClass(): string  | 
            ||
| 54 | }  | 
            ||
| 55 |