[Catalyst] Context from CDBI triggers

Christopher Heschong chris at wiw.org
Mon Jun 13 19:39:03 CEST 2005


Hi, another question to which there is probably a simple answer:

Is there any way to access the $c object from within a Class::DBI trigger
(as defined within a Catalyst::Model::CDBI::Plain class)?

I'd like to have it do a shift->muser($c->req->user) to set the current
user in a before_update trigger.

Thanks!




More information about the Catalyst mailing list