NAME

Catalyst::Controller::DBIC::API::StoredResultSource - Provides accessors for static resources

VERSION

version 2.006002

PUBLIC_ATTRIBUTES

class

The name of the Catalyst model for this controller.

result_class

Populates the result_class attribute of resultsets.

PUBLIC_METHODS

stored_result_source

Returns the result_source of the stored_model.

stored_model

Returns the model for the configured class.

Be aware that model is called as a class method on the Catalyst application and not as an instance method on $c which might lead to unexpected results in conjunction with ACCEPT_CONTEXT!

check_has_column

Convenience method for checking if the column exists in the result source

check_has_relation

check_has_relation meticulously delves into the result sources relationships to determine if the provided relation is valid. Accepts a relation name, an optional HashRef indicating a nested relationship. Iterates and recurses through provided arguments until exhausted. Dies if at any time the relationship or column does not exist.

check_column_relation

Convenience method to first check if the provided argument is a valid relation (if it is a HashRef) or column.

AUTHORS

  • Nicholas Perez <nperez@cpan.org>

  • Luke Saunders <luke.saunders@gmail.com>

  • Alexander Hartmaier <abraxxa@cpan.org>

  • Florian Ragwitz <rafl@debian.org>

  • Oleg Kostyuk <cub.uanic@gmail.com>

  • Samuel Kaufman <sam@socialflow.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Luke Saunders, Nicholas Perez, Alexander Hartmaier, et al..

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