0

我有一个奇怪的问题。我有这样的错误

类 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。已检查。此捆绑包具有更多带有其控制器的实体并且可以正常工作)

4

1 回答 1

0

我已经解决了这个错误。这个错误来自方法addEntityremoveEntity关系。我定义了错误的参数。我认为这个错误会更明确。

于 2013-04-09T10:06:21.957 回答