use MooseX::Types
-declare => [qw/ResultSet Row/];
-use MooseX::Types::Moose 'Object';
+use Moose::Util::TypeConstraints;
+
use DBIx::Class::ResultSet;
-subtype ResultSet
- => as Object
+subtype 'DBIx::Class::ResultSet'
+ => as 'Object'
=> where { $_->isa('DBIx::Class::ResultSet') };
+subtype ResultSet
+ => as 'DBIx::Class::ResultSet';
+
use DBIx::Class::Core;
use DBIx::Class::Row;
-subtype Row
- => as Object
+subtype 'DBIx::Class::Row'
+ => as 'Object'
=> where { $_->isa('DBIx::Class::Row') };
+subtype Row
+ => as 'DBIx::Class::Row';
+
1;
=head1 NAME
#this needs to be fixed. somehow. beats the shit our of me. really.
#implements build_fields_for_type_Reaction_InterfaceModel_Object => as {
- implements _build_fields_for_type_Row => as {
+ implements _build_fields_for_type_DBIx_Class_Row => as {
my ($self, $attr, $args) = @_;
$self->_build_simple_field(attribute => $attr, class => ChooseOne, %$args);
};