some solution, I have the same problem !!!!! On 7 mayo, 08:01, "sztart .pl" <szt...@gmail.com> wrote: > Yes these are my registered namespaces: > last line is Mrok namespace > > $loader->registerNamespaces(array( > 'Symfony' => array(__DIR__ . '/../vendor/symfony/src', __DIR__ . > '/../vendor/bundles'), > 'Sensio' => __DIR__ . '/../vendor/bundles', > 'JMS' => __DIR__ . '/../vendor/bundles', > 'Doctrine\\Common\\DataFixtures' => __DIR__ . > '/../vendor/doctrine-fixtures/lib', > 'Doctrine\\Common' => __DIR__ . '/../vendor/doctrine-common/lib', > 'Doctrine\\DBAL\\Migrations' => __DIR__ . > '/../vendor/doctrine-migrations/lib', > 'Doctrine\\DBAL' => __DIR__ . '/../vendor/doctrine-dbal/lib', > 'Doctrine' => __DIR__ . '/../vendor/doctrine/lib', > 'Monolog' => __DIR__ . '/../vendor/monolog/src', > 'Assetic' => __DIR__ . '/../vendor/assetic/src', > 'FOS' => __DIR__ . '/../vendor/bundles', > 'Mrok' => __DIR__ . '/../src', > )); > > This should be ok, because there are more entities, and everything was > working untill UserBundle has been added > > 2011/5/7 Christophe COEVOET <s...@notk.org>: > > > > > > > > > > > Le 06/05/2011 20:58, mrok a écrit : > > >> Hi everyone > > >> I am trying to write my first app in Symfony2 and I get stuck with > >> UserBundle. > > >> I have done all (checked twice) instruction from > > >>https://github.com/FriendsOfSymfony/UserBundle/blob/master/Resources/... > >> but still get this error: > > >> Warning: class_parents() [function.class-parents]: Class Mrok\MyBundle > >> \Entity\User does not exist and could not be loaded in /home/mrok/www/ > >> TCS/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php > >> on line 222 > > >> ReflectionException: Class Mrok\MyBundle\Entity\User does not exist > >> in /home/mrok/www/TCS/vendor/doctrine/lib/Doctrine/ORM/Mapping/ > >> ClassMetadata.php on line 67 > > >> but this class exist in directory: > >> /home/mrok/www/TCS/src/Mrok/MyBundle/Entity > >> filename: User.php > > >> <? > >> namespace Mrok\MyBundle\Entity; > >> use FOS\UserBundle\Entity\User as BaseUser; > > >> /** > >> * @orm:Entity > >> */ > >> class User extends BaseUser > >> { > >> /** > >> * @orm:Id > >> * @orm:Column(type="integer") > >> * @orm:generatedValue(strategy="AUTO") > >> */ > >> protected $id; > >> } > > >> I am completely out of idea what could be wrong... > > > Did you register the Mrok namespace in your autoloader ? > > > -- > > Christophe | Stof > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > You received this message because you are subscribed to the Google > > Groups "symfony users" group. > > To post to this group, send email to symfony-users@googlegroups.com > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en > > --www.sztart.pl
-- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en