是否可以覆盖@ManyToOne(targetEntity)下面是我的代码:use AppBundle\Model\Base\Entity\Product;use Doctrine\ORM\Mapping\AttributeOverrides;
use Doctrine\ORM\Mapping\Attr
我有两个实体TBag和TCustomer,TBag实体包含对TCustomer的引用,但是当我试图获取TCustomer实体时,关联的实体为null。实体是从数据库中生成的,使用的是原则命令行doctrine:generate:entities。Entity\TCountry public function getCountry() return $this->country;}
\原则