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

(User.instance ~ Permission.instance *).map( _.groupBy(_._1).toSeq.map {
case (u,ps) => u.copy( permissions = ps.map(_._2)) } )

On Fri, Jan 6, 2012 at 3:24 PM, recalcitrant <
reply@reply.github.com
> wrote:

> Gee, thanks, it's getting near the final result.
>
> Your solution returns:
>
> ResultSetParser[scala.collection.immutable.Map[models.auth.User,List[models.auth.Permission]]]
>
> So I'll probably need one last map-operation to get the final User with
> it's permissions out of it.
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/playframework/Play20/commit/f35fd305d98038ab0fe3f8076368ee7f8d90015b#commitcomment-843785
>

--
www.sadekdrobi.com
ʎdoɹʇuǝ