diff --git a/src/Entity/AbstractProductLine.php b/src/Entity/AbstractProductLine.php new file mode 100644 index 0000000..6a3ab84 --- /dev/null +++ b/src/Entity/AbstractProductLine.php @@ -0,0 +1,52 @@ + 'RecipeProductLine'])] +abstract class AbstractProductLine +{ + #[ORM\Id] + #[ORM\GeneratedValue] + #[ORM\Column(type: 'integer')] + private $id; + + #[ORM\Column(type: 'integer')] + private $count; + + #[ORM\ManyToOne(targetEntity: Product::class)] + private $product; + + public function getId(): ?int + { + return $this->id; + } + + public function getCount(): ?int + { + return $this->count; + } + + public function setCount($count): self + { + $this->count = $count; + + return $this; + } + + public function getProduct(): ?Product + { + return $this->product; + } + + public function setProduct($product): self + { + $this->product = $product; + + return $this; + } +} \ No newline at end of file diff --git a/src/Entity/RecipeProductLine.php b/src/Entity/RecipeProductLine.php new file mode 100644 index 0000000..1a8415a --- /dev/null +++ b/src/Entity/RecipeProductLine.php @@ -0,0 +1,11 @@ +