for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Loevgaard\SyliusBrandPlugin\Model;
use Doctrine\ORM\Mapping as ORM;
trait ProductTrait
{
/**
* @var BrandInterface
*
* @ORM\ManyToOne(targetEntity="\Loevgaard\SyliusBrandPlugin\Model\BrandInterface", cascade={"persist"}, fetch="EAGER", inversedBy="products")
* @ORM\JoinColumn(name="brand_id", referencedColumnName="id", onDelete="SET NULL")
*/
protected $brand;
* @return BrandInterface|null
public function getBrand(): ?BrandInterface
return $this->brand;
}
* @param BrandInterface|null $brand
public function setBrand(?BrandInterface $brand): void
$this->brand = $brand;