| Fey-ORM documentation | view source | Contained in the Fey-ORM distribution. |
Fey::Meta::HasMany::ViaSelect - A parent for has-one metaclasses based on a query object
version 0.43
This class implements a has-one relationship for a class, based on a provided (or deduced) query object.
This class accepts the following constructor options:
An object which does the Fey::Role::SQL::ReturnsData role. This query defines the relationship between the tables.
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.
This defaults to true.
Besides the methods inherited from Fey::Meta::HasMany, it also provides the following methods:
Corresponds to the value passed to the constructor.
Corresponds to the value passed to the constructor.
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2011 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Fey-ORM documentation | view source | Contained in the Fey-ORM distribution. |