Document model
_handleScrollFind(string $type, array &$query)
string
array
_mapMultipleIds(array &$queryData)
array
beforeFind(array $queryData) : array
array
array
beforeSave(array $options = array()) : boolean
array
boolean
delete(integer|string $id = null, boolean $cascade = true) : boolean
integer|stringID of record to delete
booleanSet to true to delete records that depend on this record
booleanTrue on success
deleteAll(mixed $conditions, boolean $cascade = true, boolean $callbacks = false) : boolean
mixedConditions to match
booleanSet to true to delete records that depend on this record (NOT USED)
booleanRun callbacks (NOT USED)
booleanTrue on success, false on failure
exists(mixed $id = null, array $conditions = array(), boolean $force = false) : boolean
mixed
array
boolean
boolean
explainQuery(string $connection, string $query) : array
stringConnection name
stringRAW query to explain / find query plan for.
arrayArray of explain information or empty array if connection is unsupported.
find(string $type = 'first', array $query = array())
string
array
setSource(string $tableName, string $indexName = null, string $typeName = null)
| throws |
when database table $tableName is not found on data source |
|---|---|
string
string
string
name : string
| var |
|---|
string
useTable : string
| var |
|---|
string
useIndex : string
| var |
|---|
string
useType : string
| var |
|---|
string
useDbConfig : string
| var |
|---|
string