playframework/Play20 — comment on commit f35fd305d98038ab0fe3f8076368ee7f8d90015b
File:  line 0
By recalcitrant:

Thanks for your time, now I need to be able to convert this to my desired instance as the map operation returns an anorm.~[A,B] object.

I need to transform this:

val withPermissions = User.single ~/ maybe(Permission.single *) ^^ {
case user ~ perms => user.copy(permissions = Set() ++ perms.getOrElse(Nil))
}

to this:

val withLotteryAndPermissions = (User.instance ~ Permission.instance *). map(_.groupBy(_._1))
// needs to be further investigated....