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

id generator strategy not working? #117

Closed
quard8 opened this issue Jul 3, 2011 · 2 comments
Closed

id generator strategy not working? #117

quard8 opened this issue Jul 3, 2011 · 2 comments

Comments

@quard8
Copy link

quard8 commented Jul 3, 2011

I'm trying to use strategy INCREMENT to create numeric identifiers, but every time I get MongoDB id presentation.

Code is:

/**
* @odm\Id(strategy="INCREMENT")
*/
private $id;

Maybe I missing something or this is a bug in current development version?

@quard8
Copy link
Author

quard8 commented Jul 3, 2011

I found strange behaviour also. If use * @odm\Id(strategy="increment"), "increment" in lower case, everything works.

But! Now I have collection "User" and before it was "users". And using annotation ODM\Document(collection="users") not working

@quard8
Copy link
Author

quard8 commented Jul 9, 2011

now it works fine, don't understand what changed

@quard8 quard8 closed this as completed Jul 9, 2011
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

1 participant