Fey::Meta::HasOne::ViaSelect - A parent for has-one metaclasses based on a query object


Fey-ORM documentation  | view source Contained in the Fey-ORM distribution.

Index


NAME

Top

Fey::Meta::HasOne::ViaSelect - A parent for has-one metaclasses based on a query object

VERSION

Top

version 0.43

DESCRIPTION

Top

This class implements a has-one relationship for a class, based on a provided (or deduced) query object.

CONSTRUCTOR OPTIONS

Top

This class accepts the following constructor options:

* select

An object which does the Fey::Role::SQL::ReturnsData role. This query defines the relationship between the tables.

* bind_params

An optional subroutine reference which will be called when the SQL is executed. It is called as a method on the object of this object's associated class.

* allows_undef

This defaults to true.

METHODS

Top

Besides the methods inherited from Fey::Meta::HasOne, it also provides the following methods:

$ho->select()

Corresponds to the value passed to the constructor.

$ho->bind_params()

Corresponds to the value passed to the constructor.

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Fey-ORM documentation  | view source Contained in the Fey-ORM distribution.