| 1 | <?php |
||
| 10 | class Media |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @ORM\Id |
||
| 14 | * @ORM\Column(type="integer") |
||
| 15 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 16 | */ |
||
| 17 | protected $id; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @ORM\ManyToOne(targetEntity="Product", inversedBy="medias") |
||
| 21 | */ |
||
| 22 | protected $product; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @ORM\Column(nullable=true) |
||
| 26 | */ |
||
| 27 | protected $url; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @ORM\Column(nullable=true) |
||
| 31 | */ |
||
| 32 | protected $description; |
||
| 33 | |||
| 34 | public function getId() |
||
| 38 | |||
| 39 | public function getProduct() |
||
| 43 | |||
| 44 | public function setProduct(Product $product) |
||
| 48 | |||
| 49 | public function getUrl() |
||
| 53 | |||
| 54 | public function setUrl($url) |
||
| 60 | |||
| 61 | public function getDescription() |
||
| 65 | |||
| 66 | public function setDescription($description) |
||
| 72 | } |
||
| 73 |