Kevin Old wrote:
> On 6/21/06, Eric W. Bates <[EMAIL PROTECTED]> wrote:
>   
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> I have read in the new Catalyst/Manual/Tutorial/CatalystBasics.pod (the
>> whole tutorial is very nice, btw) that you can invoke DBIC's debugging
>> inside your code thusly:
>>
>> $class->storage->debug(1);
>>
>> However, I cannot figure out where to get "$class".  I have tried in a
>> controller:
>>
>>
>> as a fully named model class method:
>>
>> HG::Model::HorshamDB::Plants->storage()->debug(1);
>>
>>
>> as an abbreviated model class method:
>>
>> HorshamDB::Plants->storage()->debug(1);
>>
>>
>> from the Catalyst object:
>>
>> $c->model('HorshamDB::Plants')->storage()->debug(1);
>>     
>
> Eric,
>
> It also states above that Note that you can use the following
> environmental variable to achieve the same effect.
>
> export DBIX_CLASS_STORAGE_DBI_DEBUG=1
>
> Kevin
>   
FYI Eric

You'd need to do it on the schema object directly, so 
$c->model('HorshamDB')->storage->debug(1);

Ash


_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to