Method |
Description |
|
__construct ( $dsn = null ) |
Constructor |
|
connection ( $name = 'default' ) : object |
Returns a connection by name |
|
connections ( ) : object |
Returns a the connection manager |
|
events ( ) : Events |
Gets the system-wide events registry |
|
finderFor ( $subject ) : Finder |
Looks up a finder for either an object or a classname |
|
initialize ( $subject, $callback = null ) : string |
Initializes a domain objects schema if it has not yet been initialized |
|
instance ( ) : Pheasant |
Returns the static Pheasant instance |
|
mapperFor ( $subject ) : Mapper |
Looks up a mapper for either an object or a classname |
|
register ( $class, $mapper ) |
Register a mapper for a class, also registers the mapper as a finder |
|
registerFinder ( $class, $mapper ) |
Registers the finder for a class |
|
registerMapper ( $class, $mapper ) |
Registers the mapper for a class |
|
reset ( $instance ) |
Resets the default static Pheasant instance |
|
schema ( $subject ) |
Gets the schema for an object, initializing it if needed. |
|
setup ( $dsn = null ) : Pheasant |
Shortcut for initializing the static pheasant instance |
|
transaction ( $closure, $execute = true ) : Transaction |
Creates a transaction, optionally executes |
|