From: Toby Corkindale Date: Wed, 17 Jun 2009 08:32:30 +0000 (+0000) Subject: Replace vague language around whether load_classes/namespaces is preferred, X-Git-Tag: v0.08108~83 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1ab6145705e18535e27e538c87a11b9483121f1e;p=dbsrgits%2FDBIx-Class.git Replace vague language around whether load_classes/namespaces is preferred, with an explanation that load_namespaces() is generally preferred, and explain when load_classes is appropriate. --- diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index 4b945cc..3ca9d5e 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -285,8 +285,10 @@ sub load_namespaces { =back -Alternative method to L which you should look at -using if you can. +L is an alternative method to L, both of +which serve similar purposes, each with different advantages and disadvantages. +In the general case you should use L, unless you need to +be able to specify that only specific classes are loaded at runtime. With no arguments, this method uses L to find all classes under the schema's namespace. Otherwise, this method loads the classes you specify