X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2FRecord.pm;h=18541d2db7aca8de3d7e88d68f1f7f05d0cb8d71;hb=b90f8cdac9371c219a72dda16f8deecc7c44fc28;hp=59472c898be12b76274372a207af0e70a39a556e;hpb=7f07089722bfcabe3bf42619bb2bdb81fd8d44e1;p=freeside.git diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 59472c898..18541d2db 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -149,22 +149,32 @@ sub create { } } -=item qsearch TABLE, HASHREF +=item qsearch TABLE, HASHREF, SELECT, EXTRA_SQL Searches the database for all records matching (at least) the key/value pairs in HASHREF. Returns all the records found as `FS::TABLE' objects if that module is loaded (i.e. via `use FS::cust_main;'), otherwise returns FS::Record objects. +###oops, argh, FS::Record::new only lets us create database fields. +#Normal behaviour if SELECT is not specified is `*', as in +#C