Need method for finding a single object within class

1 message Options
Embed this post
Permalink
steveo1999

Need method for finding a single object within class

Reply Threaded More More options
Print post
Permalink
I've been trying to learn Catalyst, but realize that I probably have to become more familiar with DBIC first.  Anyway, I'm trying to write a method in my 'Divisions' class of which one attribute is called 'divisionname'.  How can I write a sub called 'default' that will look in this table to find the one and only one record whose 'divisionname' is 'DEFAULT'?  FYI, I've successfully used this class to search the resultset, but don't see how to search within my own class.  

Thanks in advance.

BTW, I gave the Catalyst book a good review on Amazon, if that helps:)