X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FHelper%2FManager.pm;h=9cc94bf79128b6783156b3a1edb71982b4c24a66;hb=00177fae5986f1de25515c7103d10fc36a38cefd;hp=c44f679531f9f7944cc36e314b6c45b9847bd043;hpb=913348ce9a1a0285ef59ae1731a1bc7ba353f79c;p=kivitendo-erp.git diff --git a/SL/DB/Helper/Manager.pm b/SL/DB/Helper/Manager.pm index c44f67953..9cc94bf79 100644 --- a/SL/DB/Helper/Manager.pm +++ b/SL/DB/Helper/Manager.pm @@ -83,21 +83,34 @@ Ccache_all> before you start the actual work. Later you can use Cload_cached> to retrieve individual objects and be sure that they're already cached. -=item C +=item C -TODO: Describe find_by +Retrieves one item from the corresponding table matching the +conditions given in C<@where>. -=item C +This is shorthand for the following call: -TODO: Describe find_by_or_create + SL::DB::Manager::SomeClass->get_all(where => [ … ], limit => 1) -=item C +=item C -TODO: Describe get_first +This calls L with C<@where> and returns its result if one is +found. -=item C +If none is found, a new instance of the corresponding DB object class +is created and returned. Such a new object is not inserted into the +database automatically. -TODO: Describe make_manager_methods +=item C + +Retrieves the first item from the database by calling C with +a limit of 1. The C<@args> are passed through to C allowing +for arbitrary filters and sort options to be applied. + +=item C + +Calls Rose's C with the C<@method_list> or +C if no methods are given. =back