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|string
ID of record to delete
boolean
Set to true to delete records that depend on this record
boolean
True on success
deleteAll(mixed $conditions, boolean $cascade = true, boolean $callbacks = false) : boolean
mixed
Conditions to match
boolean
Set to true to delete records that depend on this record (NOT USED)
boolean
Run callbacks (NOT USED)
boolean
True 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
string
Connection name
string
RAW query to explain / find query plan for.
array
Array 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