Upgrading to 2.2.0: "Query must be Unlimited, but it's actually com.foursquare.rogue.InitialState"

35 views
Skip to first unread message

Adam Warski

unread,
Jan 10, 2014, 9:09:46 AM1/10/14
to rogue...@googlegroups.com
Hello,

I'm (finally) updating some code which was using Rogue 1.1.8 to 2.2.0.
In some very simple queries, like:

User.where(_.externalId eqs externalId).get

I get the compilation error:

Query must be Unlimited, but it's actually com.foursquare.rogue.InitialState

which is quite weird, given that InitialState extends Unlimited.

Any ideas what might be happening?

Thanks,
Adam

Tim Nelson

unread,
Jan 10, 2014, 9:19:39 AM1/10/14
to rogue...@googlegroups.com
I'm not sure why, but try adding () to your get call.

    User.where(_.externalId eqs externalId).get()

Adam Warski

unread,
Jan 10, 2014, 9:21:54 AM1/10/14
to rogue...@googlegroups.com
That helped, thanks a lot! Didn’t notice that the signature changed there, I wouldn’t have guessed probably :)

Adam

--
You received this message because you are subscribed to a topic in the Google Groups "rogue-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rogue-users/M-vv0_p3wPk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rogue-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply all
Reply to author
Forward
0 new messages