stof/StofDoctrineExtensionsBundle — Issue #106: Sluggable is not working for MongoDB
Author: fernanDOTdo
Created: 2012-03-07 01:15:31+00:00
State: open

Hi!
Sluggable (and others, i think) is not working because of this commit on DoctrineMongoDBBundle:
https://github.com/doctrine/DoctrineMongoDBBundle/commit/a56d07542d5fcd9b1c219cef4b0b7f2450eda011

I think you have to change the file DependencyInjection/StofDoctrineExtensionsExtension.php on line 59.

I just changed from this:

`$definition->addTag(sprintf('doctrine.odm.mongodb.%s_event_subscriber', $name));`

To this:

`$definition->addTag('doctrine.odm.mongodb.event_subscriber');`

And its working again but i dont know if this is the best way to do it.
Thank you!