Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctrine 2.1.6 works, 2.2 doesn't (Annotations not imported) #24

Open
trialgod opened this issue Feb 16, 2012 · 4 comments
Open

Doctrine 2.1.6 works, 2.2 doesn't (Annotations not imported) #24

trialgod opened this issue Feb 16, 2012 · 4 comments

Comments

@trialgod
Copy link

Hi,

iam using the newest Version of the bisna-library. In Doctrine 2.1.6 the integration works properly, but when i upgrade to Doctrine 2.2 the annotation-reading fails. I get the following:

Semantical Error] The annotation "@table" in class Project\Entity\AclRoles was never imported. Did you maybe forget to add a "use" statement for this annotation?

What can i do here?

@bountin
Copy link
Contributor

bountin commented Feb 16, 2012

I've encountered the same problem (See #23). Guilhermeblanco merged my pull request two days ago, so it should be working if you use the current master.

@bountin
Copy link
Contributor

bountin commented Feb 16, 2012

I forgot to mention that I've changed the annotationReaderClass to the SimpleAnnotationReader:

resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.annotationReaderClass = "Doctrine\Common\Annotations\SimpleAnnotationReader"

@ssmusoke
Copy link

@bountin using the SimpleAnnotationReader will break the namespace loading for Doctrine 2.2, the default annotation reader is what works

@arch1t3ct
Copy link

The problem doesn't go away if AnnotationReader is used in Doctrine 2.2.2. Changing, as @bountin suggests, to SimpleAnnotationReader works. If this is an incorrect way, then the bug still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants