- # With Rose::DB::Object instances. For example a group membership
- # (SL::DB::AuthGroup) for a user (SL::DB::AuthUser) via the user's
- # "groups" relationship:
- [% P.select_tag('direction', SELF.all_groups, default=SELF.user.groups,
- title_key='name', default_key='id', multiple=1) %]
+ # Use an RDBO object and it's n:m relatioship as the default
+ # values. For example, a user can be a member in many groups. "All
+ # groups" is therefore the full collection and "$user->groups" is a
+ # list of RDBO AuthGroup objects whose IDs must match the ones in
+ # "All groups". This could look like the following:
+ [% P.select_tag('user.groups[]', SELF.all_groups, multiple=1,
+ default=SELF.user.groups, default_value_key='id' ) %]