digiaonline / lumen-doctrine-mongodb-odm

Doctrine MongoDB ODM bindings for lumen
MIT License
15 stars 9 forks source link

override type if already exists #2

Closed ianldgs closed 8 years ago

ianldgs commented 8 years ago

Lumen tests try to register DoctrineServiceProvider more than once and when it happens, Type throws MappingException('Type short_id already exists.') (which I believe to be the first type to be registered). This also gives the possibility to override default types.

Jalle19 commented 8 years ago

Looks good, @lindqvic?

Jalle19 commented 8 years ago

I mean @kryysler

kryysler commented 8 years ago

Yep, looks good. Nice way to override the default types as well.