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

Doc Refactoring: Annotations must use the SerializerBundle namespace #250

Closed
mdhooge opened this issue Dec 6, 2012 · 1 comment
Closed

Comments

@mdhooge
Copy link

mdhooge commented Dec 6, 2012

... and not the library namespace.

It took me quite a long time to figure out why the annotations I put into an Entity were accepted but not taken into account: When using this bundle, one MUST use the JMS\SerializerBundle\Annotation namespace, and not the JMS\Serializer\Annotation one.

And with the doc refactoring (that I understand because it seems most was duplicated), you link to the library that uses its namespace in the examples.

@schmittjoh
Copy link
Owner

That entirely depends on the version that you are using.

If you are really using the master version, then you need to use the new namespace JMS\Serializer\Annotation. If you are on an older version, then you need to use the old namespace JMS\SerializerBundle\Annotation.

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

2 participants