Oryzone / OryzoneMediaStorageBundle

Bundle to abstract the process of storing and retrieving media files
8 stars 11 forks source link

Difficult to support custom persistance driver #27

Closed mtotheikle closed 11 years ago

mtotheikle commented 11 years ago

Since OryzoneMediaStorageExtension sets an alias for either doctrine.orm.entity_manager or doctrine.odm.mongodb.document_manager, it is impossible to use a custom driver without defining that definition. The library should take advantage of the EntityManager::getEntityManger factory method like done in the configuration for FOSOAuthServerBundle orm.xml configuration.

I should have some free time this weekend to get this change made, but wanted to get it documented.

lmammino commented 11 years ago

Feel free to submit a pull request if you can as I will have almost 0 free time until the next weekend so I can't look at this so soon...

mtotheikle commented 11 years ago

Will do. Just wanted to get issue entered incase this weekends work ends up taking longer than expected.

lmammino commented 11 years ago

@mtotheikle just updated. Seems to working for me, but I admit I have no time for accurate tests now... If it's good for you I'll close the issue :wink:

mtotheikle commented 11 years ago

This looks like it will work. I did a temp hack to make it work in my case and need to get the library back to original state before I can test this. Will check it out within a few days.

lmammino commented 11 years ago

Ok @mtotheikle! You can close the issue when you're sure it works :+1:

lmammino commented 11 years ago

Closing it...