I tried getting the DoctrineCouchDBBundle to work today, but without success. The following error is what I get:
[Semantical Error] The annotation "@Document" in class Acme\DemoBundle\Document\Article was never imported. Did you maybe forget to add a "use" statement for this annotation?
It seems an annotiotion reader should be loaded, but I don't know how. I'm using the latest build of Symfony
This is the Article.php which I try to implement:
The use statements are missing for the annotation classes
I understand the use statements are missing, but there is no documentation on what the use statements should be.
From the mongodb documentation I got that it should be:
use Doctrine\ODM\CouchDB\Mapping\Annotations as CouchDB;
/* @CouchDB\Id */
// a bunch of setters and getters
I think there should be an update to the documentation which has a full working example. The code snippets now are too little for someone starting with CouchDB ODM.