Skip to content

Commit

Permalink
clarify how SelfResultSet works, sorta
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Jul 30, 2014
1 parent 2858d29 commit 79ce1f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/DBIx/Class/Helper/Row/SelfResultSet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ row. A good reason to do that would be if you had a ResultSet method that adds
in some calculated data, like counts of a relationship. You could use this to
get at that counted data without duplicating the logic for the counting.
Due to primitives provided by L<DBIx::Class::PK> this references the current
values, or in C<DBIx::Class> terms, the dirty values. So if you modify the
primary columns it will be temporarily incorrect. For what it's worth I'm not
married to this behavior and I'd rather you get in touch with me before you
depend on it.
=head1 METHODS
=head2 self_rs
Expand Down

0 comments on commit 79ce1f7

Please sign in to comment.