FriendsOfSymfony/FOSUserBundle — Issue #541: Error with Doctrine Common 2.2.0
Author: Lumbendil
Created: 2012-02-21 10:28:04+00:00
State: open

FOSUserBundle doesn't work with Doctrine Common 2.2.0.

On a working codebase, after following the steps on the [documentation](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/index.md) i get the following error:

Fatal error: Class Doctrine\ORM\Mapping\ClassMetadataInfo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\Common\Persistence\Mapping\ClassMetadata::getIdentifierValues) in C:\projects\wiakowe\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php on line 1983
Call Stack
#	Time	Memory	Function	Location
1	0.0027	336432	{main}( )	..\app_dev.php:0
2	0.1730	4072304	Symfony\Component\HttpKernel\Kernel->handle( )	..\app_dev.php:24
3	4.0441	23773872	Symfony\Bundle\FrameworkBundle\HttpKernel->handle( )	..\bootstrap.php.cache:547
4	4.0442	23774544	Symfony\Component\HttpKernel\HttpKernel->handle( )	..\classes.php:4852
5	4.0442	23774544	Symfony\Component\HttpKernel\HttpKernel->handleRaw( )	..\classes.php:3875
6	4.0442	23775272	Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher->dispatch( )	..\classes.php:3889
7	4.0442	23775272	Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher->lazyLoad( )	..\classes.php:4789
8	4.0444	23778832	Symfony\Component\DependencyInjection\Container->get( )	..\classes.php:4800
9	4.0444	23779096	appDevDebugProjectContainer->getProfilerListenerService( )	..\bootstrap.php.cache:190
10	4.0455	23811744	Symfony\Component\DependencyInjection\Container->get( )	..\appDevDebugProjectContainer.php:1576
11	4.0455	23811984	appDevDebugProjectContainer->getProfilerService( )	..\bootstrap.php.cache:190
12	4.0612	24210352	Symfony\Component\DependencyInjection\Container->get( )	..\appDevDebugProjectContainer.php:1558
13	4.0612	24210616	appDevDebugProjectContainer->getSecurity_ContextService( )	..\bootstrap.php.cache:190
14	4.0612	24211288	Symfony\Component\DependencyInjection\Container->get( )	..\appDevDebugProjectContainer.php:1685
15	4.0612	24211592	appDevDebugProjectContainer->getSecurity_Authentication_ManagerService( )	..\bootstrap.php.cache:190
16	4.0658	24266400	Symfony\Component\DependencyInjection\Container->get( )	..\appDevDebugProjectContainer.php:2493
17	4.0658	24266672	appDevDebugProjectContainer->getFosUser_UserManagerService( )	..\bootstrap.php.cache:190
18	4.1443	24399192	FOS\UserBundle\Entity\UserManager->__construct( )	..\appDevDebugProjectContainer.php:1231
19	4.1443	24399192	Doctrine\ORM\EntityManager->getRepository( )	..\UserManager.php:41
20	4.1443	24399264	Doctrine\ORM\EntityManager->getClassMetadata( )	..\EntityManager.php:574
21	4.1444	24399264	Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor( )	..\EntityManager.php:257
22	4.1444	24399296	Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata( )	..\ClassMetadataFactory.php:170
23	4.1483	24463240	Doctrine\ORM\Mapping\ClassMetadataFactory->newClassMetadataInstance( )	..\ClassMetadataFactory.php:263
24	4.1483	24463544	Symfony\Component\ClassLoader\DebugUniversalClassLoader->loadClass( )	..\DebugUniversalClassLoader.php:0
25	4.1771	24532176	require( 'C:\projects\wiakowe\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadata.php' )	..\DebugUniversalClassLoader.php:55
26	4.1771	24532488	Symfony\Component\ClassLoader\DebugUniversalClassLoader->loadClass( )	..\DebugUniversalClassLoader.php:0
27	4.1892	24915064	require( 'C:\projects\wiakowe\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php' )	..\DebugUniversalClassLoader.php:55