src/Entity/ProductAttributeDescription.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * PagesDescription
  6. *
  7. * @ORM\Table(name="products_attributes_description")
  8. * @ORM\Entity
  9. */
  10. class ProductAttributeDescription
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @var \App\Entity\ProductAttribute
  22. *
  23. * @ORM\ManyToOne(targetEntity="App\Entity\ProductAttribute", inversedBy="descriptions")
  24. * @ORM\JoinColumn(name="products_attributes_id", referencedColumnName="products_attributes_id", onDelete="CASCADE")
  25. */
  26. private $productAttribute;
  27. /**
  28. * @var \App\Entity\Language
  29. *
  30. * @ORM\ManyToOne(targetEntity="App\Entity\Language")
  31. * @ORM\JoinColumn(name="language_id", referencedColumnName="languages_id")
  32. */
  33. private $language;
  34. /**
  35. * @var ?string
  36. *
  37. * @ORM\Column(name="value", type="string", length=255, nullable=true)
  38. */
  39. private $value;
  40. public function getId(): int {
  41. return $this->id;
  42. }
  43. public function getProductAttribute(): \App\Entity\ProductAttribute {
  44. return $this->productAttribute;
  45. }
  46. public function setProductAttribute(\App\Entity\ProductAttribute $productAttribute): void {
  47. $this->productAttribute = $productAttribute;
  48. }
  49. public function getValue(): ?string {
  50. return $this->value;
  51. }
  52. public function setValue(?string $value): void {
  53. $this->value = $value;
  54. }
  55. public function setPicture(\App\Entity\Picture $picture): void {
  56. $this->picture = $picture;
  57. }
  58. public function getLanguage(): \App\Entity\Language {
  59. return $this->language;
  60. }
  61. public function setLanguage(\App\Entity\Language $language): void {
  62. $this->language = $language;
  63. }
  64. }