From: Arthur Axel 'fREW' Schmidt Date: Fri, 2 Jul 2010 14:16:46 +0000 (-0500) Subject: do not point to deprecated component X-Git-Tag: v0.08124~128 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c4def33bb10d12a6face7d24cbf18564023b011a;p=dbsrgits%2FDBIx-Class.git do not point to deprecated component --- diff --git a/lib/DBIx/Class/Manual/Component.pod b/lib/DBIx/Class/Manual/Component.pod index 398ef2e..89c3a50 100644 --- a/lib/DBIx/Class/Manual/Component.pod +++ b/lib/DBIx/Class/Manual/Component.pod @@ -57,18 +57,18 @@ could override the insert and delete methods. # Do stuff with $self, like set default values. return $self->next::method( @_ ); } - + sub delete { my $self = shift; # Do stuff with $self. return $self->next::method( @_ ); } -Now, the order that a component is loaded is very important. Components -that are loaded first are the first ones in the inheritance stack. So, if -you override insert() but the DBIx::Class::Row component is loaded first -then your insert() will never be called, since the DBIx::Class::Row insert() -will be called first. If you are unsure as to why a given method is not +Now, the order that a component is loaded is very important. Components +that are loaded first are the first ones in the inheritance stack. So, if +you override insert() but the DBIx::Class::Row component is loaded first +then your insert() will never be called, since the DBIx::Class::Row insert() +will be called first. If you are unsure as to why a given method is not being called try printing out the Class::C3 inheritance stack. print join ', ' => Class::C3::calculateMRO('YourClass::Name'); @@ -79,7 +79,7 @@ Check out the L docs for more information about inheritance. =head2 Extra -These components provide extra functionality beyond +These components provide extra functionality beyond basic functionality that you can't live without. L - Hooks for Storable freeze/thaw. @@ -98,8 +98,6 @@ L - Display the amount of time it takes to run queries L - Declare virtual columns that return random strings. -L - Force UTF8 (Unicode) flag on columns. - L - Implicit UUID columns. L - CRUD methods.