On Wed, Jan 6, 2010 at 8:25 AM, Kiffin Gish <[email protected]> wrote:
> I was just wondering what the purpose of the Schema/Resultset directory > is compared with Schema/Result? > > Seems that whatever I can so under Resultset I can also do under Result, > so what are the advantages? > > -- > Kiffin Gish <[email protected]> > Gouda, The Netherlands > > > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ > Result describe _one_ row ResultSet describe one or more rows. so $c->model("DB::Whatever")->search({ name => "John" }) will return resultset (i.e. set of rows), and $c->model("DB::Whatever")->find(1) will return result (i.e. one row) Regards, Pavel
_______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
