Skip to content

Commit

Permalink
Document ::OnColumnChange semantics a little bit more clearly
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Apr 6, 2015
1 parent d905315 commit b20cb17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Revision history for {{$dist->name}}
{{$NEXT}}
- Make ::OnColumnChange always allow mutating values before update
- Fix documented args for `after_column_change`
- Document ::OnColumnChange semantics a little bit more clearly

2.025002 2015-03-21 00:03:43-05:00 America/Chicago
- Migrate ::RS::CorelateRelationship to an importable Util
Expand Down
9 changes: 9 additions & 0 deletions lib/DBIx/Class/Helper/Row/OnColumnChange.pm
Original file line number Diff line number Diff line change
Expand Up @@ -334,3 +334,12 @@ If used in conjunction with L<DBIx::Class::Candy> this component will export:
=item after_column_change
=back
=head1 NO SURPRISE RACE CONDITIONS
One thing that should be made totally clear is that the column change callbacks
are in effect B<< only once >> in a given update. If you expect to be able to
do something weird like calling one of the callbacks which changes a value with
an accessor which calls a callback etc etc, you probably just need to write some
code to do that yourself. This helper is specifically made with the aim of
reacting to changes immediately before they hit the database.

0 comments on commit b20cb17

Please sign in to comment.