Auto Increment index using findAndModify with Li3 throwing error

31 views Asked by At

I'm following this post to get an auto increment id instead of using the mongoid but getting error

    Method `_connection` not defined or handled in class.

It makes sense because I can't find a function called _connection anywhere. Is it due to an outdated version of Lithium? Am I missing something or how can I accomplish this?

Thanks

1

There are 1 answers

0
Nate Abele On BEST ANSWER