[Dbix-class] utf8 + Loader generated/updated schema

2007-12-11 Thread Ashley Pond V
I really like Loader but there are things that are impossible (I think) to do with it; specifically, using the UTF8Columns component (since it's per column). I found a nice article, in Japanese, on how to make your model base handle utf8 (in what I believe is the same fashion UTF8Columns do

Re: [Dbix-class] result testing

2007-12-11 Thread Ronald J Kimball
The call to $rs->first returns undef, so you're trying to call undef->id. That's why you get the error. Is that enough of a hint? :) Try this: myErrorFunc() unless $rs->first; If id is a primary or unique key, you could do this instead: myErrorFunc() unless $c->model('AppModelDB::Clients

[Dbix-class] result testing

2007-12-11 Thread Angel Kolev
Hi guys. How i can check if my $rs = $c->model('AppModelDB::Clients')->search({id=>$id}); succeed ? If i try "myErrorFunc() unless defined $rs->first->id" (or something like this) the result is always "Caught exception in. Cant call method "id" on undefined value.". I just wanna k