| 1 | <?php  | 
            ||
| 13 | final class Article extends TranslatableEntity  | 
            ||
| 14 | { | 
            ||
| 15 | /**  | 
            ||
| 16 | * @ORM\Id  | 
            ||
| 17 | * @ORM\GeneratedValue  | 
            ||
| 18 | * @ORM\Column(type="integer")  | 
            ||
| 19 | */  | 
            ||
| 20 | private $id;  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @var ArrayCollection  | 
            ||
| 24 | *  | 
            ||
| 25 | * @ORM\OneToMany(  | 
            ||
| 26 | * indexBy="locale",  | 
            ||
| 27 | * targetEntity="Sonata\TranslationBundle\Tests\Fixtures\Traits\ORM\Knplabs\ArticleTranslation",  | 
            ||
| 28 | * mappedBy="translatable",  | 
            ||
| 29 | * orphanRemoval=true,  | 
            ||
| 30 |      *     cascade={"persist", "merge", "remove"} | 
            ||
| 31 | * )  | 
            ||
| 32 | */  | 
            ||
| 33 | protected $translations;  | 
            ||
| 34 | |||
| 35 | public static function getTranslationEntityClass(): string  | 
            ||
| 39 | |||
| 40 | public function __construct()  | 
            ||
| 44 | |||
| 45 | public function getId()  | 
            ||
| 49 | }  | 
            ||
| 50 |