Hi again ! Well everything worked great till I tried to run *php app/console doctrine:schema:create* and it gives the following error:
*$ ../../php/php.exe app/console doctrine:schema:create* *PHP Catchable fatal error: Argument 1 passed to Gedmo\Mapping\MappedEventSubscr* *iber::loadMetadataForObjectClass() must be an instance of Doctrine\Common\Persis* *tence\ObjectManager, instance of Doctrine\ORM\EntityManager given, called in C:\* * xampp\htdocs\mcchipdkr\vendor\gedmo-doctrine-extensions\lib\Gedmo\Timestampable\ * *TimestampableListener.php on line 44 and defined in C:\xampp\htdocs\mcchipdkr\ve* *ndor\gedmo-doctrine-extensions\lib\Gedmo\Mapping\MappedEventSubscriber.php on li* *ne 124* * * *Catchable fatal error: Argument 1 passed to Gedmo\Mapping\MappedEventSubscriber:* *:loadMetadataForObjectClass() must be an instance of Doctrine\Common\Persistence* *\ObjectManager, instance of Doctrine\ORM\EntityManager given, called in C:\xampp* * \htdocs\mcchipdkr\vendor\gedmo-doctrine-extensions\lib\Gedmo\Timestampable\Times * *tampableListener.php on line 44 and defined in C:\xampp\htdocs\mcchipdkr\vendor\* *gedmo-doctrine-extensions\lib\Gedmo\Mapping\MappedEventSubscriber.php on line 12* *4* Seems that I did a mistake in my Entity , annotations ? or is something related to doctrine-common ? On Tue, Apr 5, 2011 at 7:40 PM, seven seven <sapt...@gmail.com> wrote: > Ok, that was weird, because my DoctrineExtensions wasn't up to date and I > know that yesterday I had downloaded it from github. Anyway that fixed the > issue . > And I am using SF2 - PR10. > > Thanks allot ! > > > On Tue, Apr 5, 2011 at 7:29 PM, Christophe COEVOET <s...@notk.org> wrote: > >> Le 05/04/2011 17:09, seven seven a écrit : >> >> Hello again, >> >> I have migrated to SF2 PR9 and the error I have is the same is this: >> *Fatal error*: Declaration of >> Stof\DoctrineExtensionsBundle\Listener\LoggableListener::getLogEntryClass() >> must be compatible with that of >> Gedmo\Loggable\AbstractLoggableListener::getLogEntryClass() in* >> C:\xampp\htdocs\mcchipdkr\vendor\bundles\Stof\DoctrineExtensionsBundle\Listener\LoggableListener.php >> * on line *17* >> * >> * >> *Also I did tried to use Doctrine master branch and the error was the >> same as above .* >> * >> * >> *Any thoughts about solving this ? >> * >> On Tue, Apr 5, 2011 at 11:10 AM, seven seven <sapt...@gmail.com> wrote: >> >>> Hi all, >>> >>> I have a question related to the DoctrineExtensions... I was trying to >>> use DoctrineExtensionsBundle in sf2 PR8 and I get some errors when I try >>> schema:create. >>> It seems that the Doctrine 2.0.x will not work with >>> DoctrineExtensionsBundle ? Am I correct ? I should put the Doctrine 2.0 ? >>> Anyway is there a way to implement the DoctrineExtensions without >>> changing the SF2 (version > PR8) with vendors structure ? >>> >>> P.S.: I need DoctrineExtensions to implement NestedSet as it is not in >>> the Doctrine Core. >>> >> The lastest version of the bundle is meant to be used with the current >> master branch (so it should work with PR10 but might be broken on PR9) and >> with the current state of the DoctrineExtensions repository. Are they all >> up-to-date ? >> >> -- >> 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 >> > > > > -- > <br> > Cezar > -- <br> Cezar -- 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