I guess that means, there's no "easy" way to use Doctrine extensions with
Symfony 2 (PR7) right now or in the near future?

Thanks for the answer.

- Jürgen


Am 11.03.2011 18:14 Uhr schrieb "Christophe COEVOET" unter <s...@notk.org>:

> Le 10/03/2011 21:42, mindeleven a écrit :
>> Hi,
>> 
>> I'm trying to integrate Doctrine extensions in Symfony 2 (PR 7 -
>> download from symfony.com) with the steps described in the
>> documentation of the DoctrineExtensionsBundle (index.rst).
>> 
>> I've registered the DoctrineExtensions and Stof namespaces in app/
>> autoload.php and added the DoctrineExtensionsBundle in app/
>> AppKernel.php.
>> 
>> In app/config.yml I added
>> 
>>      doctrine:
>>          orm:
>>              mappings:
>>                  StofDoctrineExtensionsBundle: ~
>> 
>> and
>> 
>>      stof_doctrine_extensions:
>>          orm:
>>              default: ~
>> 
>> After that i ran php app/console cache:warmup and got the following
>> error:
>> 
>> PHP 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 /Users/juergen/Sites/
>> symfony20/panter/vendor/gedmo-doctrine-extensions/lib/Gedmo/
>> Timestampable/AbstractTimestampableListener.php on line 31 and defined
>> in  /Users/juergen/Sites/symfony20/panter/vendor/gedmo-doctrine-
>> extensions/lib/G
>> edmo/Mapping/MappedEventSubscriber.php on line 91
>> 
>> Far as I understood the instructions, I've done everything necessary
>> to configure the bundle - but I guess I'm missing something.
>> 
>> Any help is very much appreciated!
>> 
>> - Jürgen
> l3pp4rd extensions are based on Doctrine master branch, not on the 2.0.x
> release so you should either use Doctrine master branch, either revert
> the extensions to a commit before the introduction of the type-hinting
> of the new interface
> 
> Regards


-- 
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

Reply via email to