X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FManual%2FComponent.pod;h=dfa9f94581e53cfac2b1100d115b82f37cd29d80;hb=1b6fe47d369e84831a8a881813a53cca68694e72;hp=2a762f83edb46a2a489955f23e7882455ce52a9e;hpb=d88ecca6486a2b1c4b6e2f0440165b186aab39bc;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Manual/Component.pod b/lib/DBIx/Class/Manual/Component.pod index 2a762f8..dfa9f94 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,11 +79,9 @@ 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. - L - Class::DBI Compatibility layer. L - Build forms with multiple interconnected objects. @@ -98,15 +96,13 @@ 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. =head2 Experimental -These components are under development, there interfaces may +These components are under development, their interfaces may change, they may not work, etc. So, use them if you want, but be warned.