Property | Type | Description | |
---|---|---|---|
$_collection | |||
$_defaults | |||
$_sequence |
Method | Description | |
---|---|---|
__construct ( $name, $defaults, $associations = [], |
||
addAssociation ( $name, $association ) | ||
addDefault ( $column, $value ) | ||
build ( $overrides = [], $associated = [] ) | * Build the document as an array, but don't save it to the db. | |
create ( $overrides = [], $associated = [] ) | * Create document in the database and return it. | |
recall ( ) | * Empty the collection in the database. | |
removeAssociation ( $name ) | ||
removeDefault ( $column ) | ||
setAssociations ( $associations ) | ||
setDefaults ( $defaults ) |
Method | Description | |
---|---|---|
_evalSequence ( &$data ) |
public __construct ( $name, $defaults, $associations = [], |
||
$phactory |
public build ( $overrides = [], $associated = [] ) | ||
$overrides | field => value pairs which override the defaults for this blueprint | |
$associated | [name] => [Association] pairs |
public create ( $overrides = [], $associated = [] ) | ||
$overrides | field => value pairs which override the defaults for this blueprint | |
$associated | [name] => [Association] pairs |