Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The bundles bugs : Doctrine\Common\Collections\ArrayCollection' was not found in the chain configured namespaces #35

Open
ahmed-bhs opened this issue Feb 19, 2017 · 0 comments

Comments

@ahmed-bhs
Copy link

ahmed-bhs commented Feb 19, 2017

Hi,some helpe here please :

It seems that the bundles bugs. first i have a user entity related to the group entity ,as already defined in fosuerbundle , the exception says :

The class 'Doctrine\Common\Collections\ArrayCollection' was not found in the chain configured namespaces AppBundle\Entity, FOS\UserBundle\Model

But the file( Collections\ArrayCollection.php ) alreday exist ...even i cleared the cache but same problém , and when i go to a private browser, everything is fine until i filter or add new users ,

in vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\MappingException.php at line 37
*/

    public static function classNotFoundInNamespaces($className, $namespaces)
    {
        return new self("The class '" . $className . "' was not found in the ".
            "chain configured namespaces " . implode(", ", $namespaces));  //here the probleme
    }

at UnitOfWork ->doMerge (object(ArrayCollection), array())
in vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php at line 1786

{
      $visited = array();
      return $this->doMerge($entity, $visited); //here the probleme
  }
  /**

at UserController ->filter (object(QueryBuilder), object(Request))
in src\AppBundle\Controller\UserController.php at line 39

    $queryBuilder = $em->getRepository('AppBundle:User')->createQueryBuilder('e');
     
   
   list($filterForm, $queryBuilder) = $this->filter($queryBuilder, $request); //here the problém
   $arr= $this->paginator($queryBuilder, $request); 

at call_user_func_array (array(object(UserController), 'indexAction'), array(object(Request)))
in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php at line 153

$arguments = $event->getArguments();
      // call controller
      $response = call_user_func_array($controller, $arguments); //here the probléme
      // view
      if (!$response instanceof Response) {
@ahmed-bhs ahmed-bhs changed the title the bundles bugs : Doctrine\Common\Collections\ArrayCollection' was not found in the chain configured namespaces The bundles bugs : Doctrine\Common\Collections\ArrayCollection' was not found in the chain configured namespaces Feb 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant