我有一个奇怪的问题。我有这样的错误
Class Backend \ GruposAlumnosBundle \ Entity \ GruposAlumnos不存在 在第233行的F:\ wamp \ www \ getbritSys \ vendor \ doctrine \ orm \ lib \ Doctrine \ ORM \ Proxy \ ProxyFactory.php
}
// We need to pick the type hint class too
if (($paramClass = $param->getClass()) !== null) {
$parameterString .= '\\' . $paramClass->getName() . ' ';
} else if ($param->isArray()) {
$parameterString .= 'array ';*
在我的控制器中执行此操作时会发生此错误
$em = $this->getDoctrine()->getManager();
$grupoalumno = $em->getRepository('BackendGruposBundle:GruposAlumnos')->find($item);
我的实体类GruposAlumnos
存在于BackendGruposBundle
。
一些想法?我没有发现问题,这是非常罕见的
(BackendGruposBundle
已加载AppKernel
。已检查。此捆绑包含更多实体及其控制器且工作正常)
答案 0 :(得分:0)
我已经解决了这个错误。
此错误来自关系中的方法addEntity
和removeEntity
。我用错误的参数定义了。
我认为这个错误会更明确。