Community contributed extensions

Associations [associations] module

This module is for the Play 1.x series only.

This module reduces the code to manage bi-directional associations. Instead of writing

forum1.posts.remove(post); 
post.forum = forum2; 
forum2.posts.add(post); 

you can just write

forum2.posts.add(post); 

and the module handles everything else for you.

https://github.com/pareis/play-associations

Written by André Pareis.

Published releases

1.0.1 Jul 28 2011 Documentation Try Play
1.0 Jul 26 2011 Documentation Try Play

To install locally this module use the install command:

play install associations-{version}

To add this module as dependency of your application, add it to the dependencies.yml file:

require:
        - play -> associations {version}