A guess: did you have $class = $em->getMetadataFactory()->getMetadataFor(
*'src\clients'*); or did you not have the quotes around the last argument?

On Sunday, 2 February 2014 21:06:09 UTC+1, Parsifal wrote:
>
>  
> I discovered the class was not find because of namespace. if I comment 
> that line. I get bellow. please advice:
>  
>
> Warning: Illegal offset type in isset or empty in 
> /home2/[edited]/composer/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php
>  
> on line 185
> Warning: strpos() expects parameter 1 to be string, object given in 
> /home2/[edited]/composer/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php
>  
> on line 192
> Warning: explode() expects parameter 2 to be string, object given in 
> /home2/[edited]/composer/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php
>  
> on line 193
> Fatal error: Uncaught exception 'Doctrine\ORM\ORMException' with message 
> 'Unknown Entity namespace alias ''.' in 
> /home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:236
> Stack trace:
> #0 
> /home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php(194):
>  
> Doctrine\ORM\ORMException::unknownEntityNamespace(NULL)
> #1 
> /home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(554):
>  
> Doctrine\ORM\Configuration->getEntityNamespace(NULL)
> #2 
> /home2/[edited]/composer/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(194):
>  
> Doctrine\ORM\Mapping\ClassMetadataFactory->getFqcnFromAlias(NULL, NULL)
> #3 
> /home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(295):
>  
> Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor(Object(clients))
> #4 /home2/[edited]/composer/test.php(24): 
> Doctrine\ORM\EntityManager->getClassMetadata(Object(clients))
> #5 {main}
>   thrown in 
> /home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php
>  
> on line 236
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to