NAME

CatalystX::CRUD::Model::DBIC - DBIx::Class CRUD **DEPRECATED**

SYNOPSIS

package MyApp::Model::Foo;
use base qw( CatalystX::CRUD::Model::DBIC );
__PACKAGE__->config(
       resultset_opts  => {
           join     => [ 'bar' ],
           prefetch => [ 'bar' ]
       },
       moniker         => 'Foo',
       schema_class    => 'MyDB::Main',
       connect_info    =>
           [ 'dbi:SQLite:' . MyApp->path_to('my_foo.db') ],
       );
       
1;

DESCRIPTION

** THIS PACKAGE IS DEPRECATED. See Catalystx::CRUD::ModelAdapter::DBIC instead. **

CatalystX::CRUD::Model::DBIC is a CatalystX::CRUD implementation for DBIx::Class. See the CatalystX::CRUD documentation.

METHODS

Only new or overridden methods are documented here.

new

Initialize the class at application start-up.

We implement new() instead of Xsetup() because of idiosyncracies of NEXT.

new_object( @params )

Returns a new moniker() class object. @params are passed directly to the schema()'s new() method.

fetch( @params )

@params are passed directly to the find() method of schema().

make_query( \@field_names )

Create a query from the current request suitable for search(), count() or iterator().

search( query )

If not present, query will default to the return value of make_query().

Returns an array or arrayref of CatalystX::CRUD::Object::DBIC objects depending on context.

iterator( query )

If not present, query will default to the return value of make_query().

count( query )

If not present, query will default to the return value of make_query().

AUTHOR

Peter Karman, <karman at cpan.org>

BUGS

Please report any bugs or feature requests to bug-catalystx-crud-model-dbic at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CatalystX-CRUD-Model-DBIC. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc CatalystX::CRUD::Model::DBIC

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2007 Peter Karman, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.