doctrine / DoctrineCouchDBBundle

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

Set "type" for document #40

Closed likebtn closed 10 years ago

likebtn commented 10 years ago

Bundle saves and searches documents with the type field which equals to the document class name, for example "Acme.DemoBundle.CouchDocument.Settings".

Is there any way to set custom "type", for example:

 /**
  * @CouchDB\Document(type="Settings")
  */
 class Settings
 {
     /**
      * @CouchDB\Id
      */
     protected $id;
 }
stof commented 10 years ago

This should be asked in the couchDB ODM. the mapping and the type are not related to the Symfony integration