ModelParamTrait
The set of constant keys recognized in a model's `$init` options array.
This trait holds every common parameter name shared by the model operations
and factories — covering identity (id, key, keys), payloads (document
via model), querying (conditions, query, binds, sort), caching
(cache, ttl), alteration (alters, alterKey) and behavioural toggles
(debug, mock, throwable, …).
It is consumed by ModelParam, which combines it with ConstantsTrait to expose the reflection helpers. Reference these constants rather than raw strings to keep option arrays consistent across the library (no magic strings).
Tags
Table of Contents
Constants
- ALTER_KEY : string = 'alterKey'
- The 'alterKey' parameter.
- ALTERS : string = 'alters'
- The 'alters' parameter.
- BINDS : string = 'binds'
- The 'binds' parameter.
- BINDS_ALTERS : string = 'bindsAlters'
- The 'bindsAlters' parameter.
- CACHE : string = 'cache'
- The 'cache' parameter.
- CONDITIONS : string = 'conditions'
- The 'conditions' parameter.
- DEBUG : string = 'debug'
- The 'debug' parameter.
- DEFAULT : string = 'default'
- The 'default' parameter.
- DEFER_ASSIGNMENT : string = 'deferAssignment'
- The 'deferAssignment' parameter.
- ENFORCE : string = 'enforce'
- The 'enforce' parameter.
- ENSURE : string = 'ensure'
- The 'ensure' parameter.
- ID : string = 'id'
- The 'id' parameter.
- KEY : string = 'key'
- The 'key' parameter.
- KEYS : string = 'keys'
- The 'keys' parameter.
- LIST : string = 'list'
- The 'list' parameter.
- LOGGABLE : string = 'loggable'
- The 'loggable' parameter.
- LOGGER : string = 'logger'
- The 'logger' parameter.
- MOCK : string = 'mock'
- The 'mock' parameter.
- MODEL : string = 'model'
- The 'model' parameter.
- OPTIMIZED : string = 'optimized'
- The 'optimized' parameter.
- OWNER : string = 'owner'
- The 'owner' parameter.
- PDO : string = 'pdo'
- The 'pdo' parameter.
- QUERY : string = 'query'
- The 'query' parameter.
- QUERY_BUILDER : string = 'queryBuilder'
- The 'queryBuilder' parameter.
- QUERY_FIELDS : string = 'queryFields'
- The 'queryFields' parameter.
- QUERY_ID : string = 'queryId'
- The 'queryId' parameter.
- SCHEMA : string = 'schema'
- The 'schema' parameter.
- SORT : string = 'sort'
- The 'sort' parameter.
- SORT_DEFAULT : string = 'sortDefault'
- The 'sortDefault' parameter.
- THROWABLE : string = 'throwable'
- The 'throwable' parameter.
- TTL : string = 'ttl'
- The 'ttl' parameter.
- VALUE : string = 'value'
- The 'value' parameter.
Constants
ALTER_KEY
The 'alterKey' parameter.
public
string
ALTER_KEY
= 'alterKey'
Defines the default 'alter' key identifier.
ALTERS
The 'alters' parameter.
public
string
ALTERS
= 'alters'
BINDS
The 'binds' parameter.
public
string
BINDS
= 'binds'
BINDS_ALTERS
The 'bindsAlters' parameter.
public
string
BINDS_ALTERS
= 'bindsAlters'
CACHE
The 'cache' parameter.
public
string
CACHE
= 'cache'
CONDITIONS
The 'conditions' parameter.
public
string
CONDITIONS
= 'conditions'
DEBUG
The 'debug' parameter.
public
string
DEBUG
= 'debug'
DEFAULT
The 'default' parameter.
public
string
DEFAULT
= 'default'
DEFER_ASSIGNMENT
The 'deferAssignment' parameter.
public
string
DEFER_ASSIGNMENT
= 'deferAssignment'
ENFORCE
The 'enforce' parameter.
public
string
ENFORCE
= 'enforce'
ENSURE
The 'ensure' parameter.
public
string
ENSURE
= 'ensure'
ID
The 'id' parameter.
public
string
ID
= 'id'
KEY
The 'key' parameter.
public
string
KEY
= 'key'
KEYS
The 'keys' parameter.
public
string
KEYS
= 'keys'
LIST
The 'list' parameter.
public
string
LIST
= 'list'
LOGGABLE
The 'loggable' parameter.
public
string
LOGGABLE
= 'loggable'
LOGGER
The 'logger' parameter.
public
string
LOGGER
= 'logger'
MOCK
The 'mock' parameter.
public
string
MOCK
= 'mock'
MODEL
The 'model' parameter.
public
string
MODEL
= 'model'
OPTIMIZED
The 'optimized' parameter.
public
string
OPTIMIZED
= 'optimized'
OWNER
The 'owner' parameter.
public
string
OWNER
= 'owner'
PDO
The 'pdo' parameter.
public
string
PDO
= 'pdo'
QUERY
The 'query' parameter.
public
string
QUERY
= 'query'
QUERY_BUILDER
The 'queryBuilder' parameter.
public
string
QUERY_BUILDER
= 'queryBuilder'
QUERY_FIELDS
The 'queryFields' parameter.
public
string
QUERY_FIELDS
= 'queryFields'
QUERY_ID
The 'queryId' parameter.
public
string
QUERY_ID
= 'queryId'
SCHEMA
The 'schema' parameter.
public
string
SCHEMA
= 'schema'
SORT
The 'sort' parameter.
public
string
SORT
= 'sort'
SORT_DEFAULT
The 'sortDefault' parameter.
public
string
SORT_DEFAULT
= 'sortDefault'
THROWABLE
The 'throwable' parameter.
public
string
THROWABLE
= 'throwable'
TTL
The 'ttl' parameter.
public
string
TTL
= 'ttl'
VALUE
The 'value' parameter.
public
string
VALUE
= 'value'