我有一个表,其他表的id字段可以为空,当我试图构建一个表单时,甚至在构建表单之前,我一直收到字段类型错误或为空的错误。任何帮助都将不胜感激。下面是我收到的错误消息"Type error: Return value of AppBundle\Entity\Item::getIdcategory() must a instance of AppBundlephp
use Doctrine
File(/var/www/vhosts/mainstore.com/httpdocs/app/Mage.php) is not within the allowed path(s): (/var/www/vhosts/secondarystore.com/httpdocs:/tmp) in /var/www/vhosts/secondarystore.com/httpdocs/index