* John Napiorkowski <[EMAIL PROTECTED]> [2006-06-07 06:20]:
> I can still do:
>
> if( $c->model("db:video")->search({id=?id})->count )
>
> and this works but seems rather cludgy. Have any of you found
> a cleaner and more correct way to do this type of check?
Maybe like so?
if( $c->model("db:video")->count({id=?id}) )
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/