src/IlaveU/ShopBundle/Entity/Product/ProductShop.php line 18
<?phpnamespace App\IlaveU\ShopBundle\Entity\Product;use ApiPlatform\Core\Annotation\ApiResource;use App\IlaveU\ShopBundle\Entity\Product\Product as EntityProduct;use App\IlaveU\ShopBundle\Entity\Vendor\Vendor ;use App\IlaveU\ShopBundle\Repository\ProductShopRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Doctrine\ORM\Mapping\Table ;#[ApiResource]#[Table(name: 'shop_product')]#[ORM\Entity(repositoryClass: ProductShopRepository::class)]class ProductShop extends EntityProduct{#[ORM\ManyToOne(targetEntity: Vendor::class, inversedBy: 'products')]private ?\App\IlaveU\ShopBundle\Entity\Vendor\Vendor $vendor = null;public function __construct(){parent::__construct();}public function getVendor(): ?Vendor{return $this->vendor;}public function setVendor(?Vendor $vendor): self{$this->vendor = $vendor;return $this;}}