NAME
Fey::Meta::HasOne::ViaSelect - A parent for has-one metaclasses based on a Fey::SQL::Select object
DESCRIPTION
This class implements a has-one relationship for a class, based on a provided (or deduced) Fey::SQL::Select object.
CONSTRUCTOR OPTIONS
This class accepts the following constructor options:
select
The Fey::SQL::Select object which 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
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
Dave Rolsky, <autarch@urth.org>
BUGS
See Fey::ORM for details.
COPYRIGHT & LICENSE
Copyright 2006-2009 Dave Rolsky, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module.