On 27.05.2009, at 18:59, Jarom Smith wrote:

So, my question is: In a Catalyst context, where do I put these kinds of "helper" DB methods and how do I access them? (both from within a Catalyst app, as well as from the command-line like in a Cron job or whatever...) Some actual specific examples would be great. I'm sure there is a way, and I'm guessing it involves the model somehow (possibly by creating a new model class?) but I haven't been able to figure it out yet. I tried adding methods to the classes created by Catalyst/DBIC in the Schema/Result directory, but gradually it dawned on me that methods placed here are only dealing with a single entity of that type. To go back to Java- speak, it seems like the stuff in Schema/Result are DTO methods; what I'm trying to figure out is how/where to put the DAO methods.

http://www.pqpq.de/mt/2009/05/catalyst-dbic-dao.html

Cheers,
plu

--
Johannes Plunien | mailto:[email protected] | http://www.pqpq.de/contact/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
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/

Reply via email to