doctrine/DoctrineCouchDBBundle — Issue #3: Annotation reader not working
Author: redotheoffice
Created: 2011-10-17 15:03:32+00:00
State: open

Hello,

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:

topic = $value;
}

public function getTopic()
{
return $this->topic;
}
public function setText($value='')
{
$this->text=$value;
}
public function getText()
{
return $this->text;
}
public function setId($value='')
{
$this->id = $value;
}
public function getId()
{
return $this->id;
}
}

Should something special be run in autoload.php for the AnnotationRegistry::registerFile??

Thanks