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 know if that ID exists in my DB and throw Error screen if not.
Thanks

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to