使用Symfony 3,将新字段添加到文档中,设置员不会保存新字段。在Symfony 2上,它已通过清除缓存并重新启动服务器来解决,但现在无济于事
/**
* @MongoDB\Field(type="string")
*/
private $creatorName;
/**
* Set creatorName
*
* @param string $creatorName
* @return $this
*/
public function setCreatorName($creatorName)
{
$this->creatorName = $creatorName;
return $this;
}