guilhermeblanco/ZendFramework1-Doctrine2 — Issue #20: Integration with Doctrine 2.1
Author: jmeyo
Created: 2011-11-30 01:12:00+00:00
State: open

I'm trying to setup some unit tests in order to discover Doctrine, but i cannot use annotation, for an unknown reason. Am i wrong, or there is a real issue with Doctrine 2.1

I put a very simple Entity, with simple annotation :
@Entity
@Table(name="products")

But i keep having the following error :
Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@Table" in class Hipopo\Entity\User was never imported. Did you maybe forget to add a "use" statement for this annotation?

As i understand Annotation are hard to understand from my setup, but i don't see where it failed.

About my setup, i did checkout the latest Doctrine version, and linked them in library (svn external urls), so my setup, is slightly :
./library/Doctrine/ORM point to ORM release library directory of Doctrine
./library/Doctrine/DBAL point to DBAL release library directory of Doctrine
./library/Doctrine/Common point to Common release library directory of Doctrine

so in my application i have some lines like :
resources.doctrine.classLoader.loaders.doctrine_common.namespace = "Doctrine\Common"
resources.doctrine.classLoader.loaders.doctrine_common.includePath = APPLICATION_PATH "/../library"

Tell me if i'm wrong somewhere

And i must admit i'm quite bugged by the path you use in the packaged configuration file, (" ./library/vendor/Doctrine/lib/vendor/doctrine-common/lib/ "). Why those path are so strange ?