Symfony 4 Doctrine存储库不返回一个字段值

问题描述 投票:0回答:1

我的实体中的字段有问题。在开发中,一切都很完美,但是在prod中,存储库的一个字段返回null。

this->getDoctrine()
->getRepository(Realization:class)
->find($id)

实体:

/**
 * @ORM\Column(type="integer", nullable=true)
*/
private $yardage

在var转储中的prod:

["yardage":"App\Entity\Realization":private]=> NULL 

在var转储中的dev:

["yardage":"App\Entity\Realization":private]=> int(111)

bin / console c:c之后没有任何变化。

任何的想法?

caching doctrine symfony4
1个回答
0
投票

关闭

我觉得有些奇怪的缓存,周末之后一切正常......

© www.soinside.com 2019 - 2024. All rights reserved.