From 79ce1f7a7522377243079217cc118dfdcd5f4332 Mon Sep 17 00:00:00 2001 From: Arthur Axel 'fREW' Schmidt Date: Tue, 29 Jul 2014 20:31:41 -0500 Subject: [PATCH] clarify how SelfResultSet works, sorta --- lib/DBIx/Class/Helper/Row/SelfResultSet.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/DBIx/Class/Helper/Row/SelfResultSet.pm b/lib/DBIx/Class/Helper/Row/SelfResultSet.pm index a7f3641..4ac8bd6 100644 --- a/lib/DBIx/Class/Helper/Row/SelfResultSet.pm +++ b/lib/DBIx/Class/Helper/Row/SelfResultSet.pm @@ -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 this references the current +values, or in C 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