报错:
Catchable Fatal Error: Object of class App\Entity\ProjectType could not be converted to string
版本:symfony5.0
解决办法:
在对应的Entity里添加public __toString方法,我这里就是App\Entity\ProjectType类
// App\Entity\ProjectType
public function __toString(){
return strval($this->getId());
}