I'm wondering about validating at DBIC layer in addition to my current
validation.
Specifically, I have a large number of classes that use an integer primary
key. So,
$schema->resultset( 'Foo' )->find( 'bad data' );
would never hit the database and would return undefined. Likewise:
$schema->resultset( 'Foo' )->search( { id => 'bad data' } )->first; # or
called in list context
would act as if no rows were found.
Obviously, there's other column data that needs to be validated -- this
would just be an extra layer for primary keys.
I'm not sure I want to go this route, but curious how to accomplish this
with DBIC,
--
Bill Moseley
[email protected]
_______________________________________________
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]