Meta where (_condition_) orderDesc (_.message.subfield(_.createdAt))
resulted in:
type mismatch;
[error] found : com.foursquare.rogue.SelectableDummyField[java.util.Date,x.Meta]
[error] required: com.foursquare.rogue.AbstractQueryField[_, _, _, x.Meta]
[error] Note that implicit conversions are not applicable because they are ambiguous:
[error] both method rdateFieldToQueryField in trait Rogue of type [M](f: com.foursquare.field.Field[java.util.Date,M])com.foursquare.rogue.QueryField[java.util.Date,M]
[error] and method rdateFieldToDateQueryField in trait Rogue of type [M](f: com.foursquare.field.Field[java.util.Date,M])com.foursquare.rogue.DateQueryField[M]
[error] are possible conversion functions from com.foursquare.rogue.SelectableDummyField[java.util.Date,x.Meta] to com.foursquare.rogue.AbstractQueryField[_, _, _, x.Meta]
It seems that lines 54 and 55 in Rogue.scala cause that since both QueryField and DateQueryField extend AbstractQueryField, thus implicit conversion fails to apply:
implicit def rdateFieldToQueryField[M](f: RField[Date, M]): QueryField[Date, M] = new QueryField(f)implicit def rdateFieldToDateQueryField[M](f: RField[Date, M]): DateQueryField[M] = new DateQueryField(f)
--
You received this message because you are subscribed to the Google Groups "rogue-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rogue-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.