src/Entity/System/ProductLangRu.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. *
  7. * @ORM\Table(name="ps_product_lang_ru",
  8. * indexes={
  9. *
  10. * @ORM\Index(name="indexed", columns={"indexed"}),
  11. * @ORM\Index(name="translations", columns={"translations"}),
  12. * @ORM\Index(name="link_rewrite", columns={"link_rewrite"})
  13. * }
  14. * )
  15. */
  16. class ProductLangRu extends ProductLangBase implements ProductLangInterface
  17. {
  18. /**
  19. * @var Product
  20. *
  21. * @ORM\OneToOne(targetEntity="App\Entity\System\Product", inversedBy="productLangRu")
  22. *
  23. * @ORM\JoinColumn(name="id_product", referencedColumnName="id_product")
  24. */
  25. private $product;
  26. public function getProduct(): Product
  27. {
  28. return $this->product;
  29. }
  30. public function setProduct(Product $product): ProductLangInterface
  31. {
  32. $this->product = $product;
  33. return $this;
  34. }
  35. }