doctrine / DoctrineCouchDBBundle

Symfony Bundle for DoctrineCouchDB
http://www.doctrine-project.org
Other
49 stars 46 forks source link

'type': namespace collision with class properties #38

Closed KampfCaspar closed 8 years ago

KampfCaspar commented 10 years ago

Hi!

As it seems, a property named 'type' is used to save the respective couchdocument class name...

Unfortunately, 'type' is quite a common field name and therefore leads to conflicts. Wouldn't it be better to include the class name in doctrine_metadata?

KampfCaspar

guillaumek commented 9 years ago

+1

guillaumek commented 9 years ago

it seems this is not related to the bundle itself.

beberlei commented 8 years ago

You can rename the type column using the mapping settings 'jsonName' or similar to 'mytype' in couch.