Метод |
Описание |
|
__construct ( $class, $params = [] ) |
Constructor |
|
alias ( ) : string |
A short alias for the object, used in queries |
|
className ( ) : string |
The name of the domain objectclass |
|
defaults ( ) : array |
Returns an array with properties with default values |
|
diff ( $o1, $o2 ) |
Returns the keys that differ from the second object to the first by their types |
|
equals ( $o1, $o2 ) |
Check if two objects have equal values as determined by their types |
|
events ( ) : Events |
Return the schema-wide {@link Events} object |
|
getter ( $attr ) : closure |
Return a closure for getting an attribute from a domain object |
|
hasAttribute ( $attr ) |
Check if attribute is available on a domain object |
|
hash ( $object, $keys ) |
Returns a hash in the form Class[key=val] |
|
hydrate ( $row ) : object |
Hydrates a database array into the domain object of the schema |
|
identity ( $object ) : Identity |
Returns an identity for a domain object |
|
marshal ( $row ) : array |
Converts an array using each columns type object to database format |
|
newInstance ( $args = [] ) : object |
Creates an instance of the object, passes args to the constructor |
|
primary ( ) : array |
Returns an array of Properties that form the primary keys |
|
properties ( ) : array |
Returns the Property objects for the schema |
|
relationship ( $name ) : Relationship |
Returns a particular Relationship |
|
relationships ( ) : array |
Returns the Relationship objects for the schema |
|
setter ( $attr ) : closure |
Return a closure for setting an attribute on a domain object |
|
unmarshal ( $row ) : array |
Converts an array using each columns type object to the object format |
|