Method | Description | |
---|---|---|
__clone ( ) | ||
__construct ( |
||
_processResults ( $results ) | ||
copy ( ) | ||
count ( ) | ||
deleteAll ( ) | Issues "delete from . | |
deleteEach ( ) | Calls Model::delete method for each matching object | |
fetch ( ) : |
||
fetchAll ( ) : |
||
fetchIterator ( integer $batchSize = 500 ) : Iterator | ||
getQuery ( ) | ||
groupBy ( $groupBy ) | ||
innerJoin ( $relationSelector, null $aliases = null, array $on = [] ) : |
||
join ( $relationSelector, null $aliases = null, string $type = 'LEFT', array $on = [] ) : |
||
leftJoin ( $relationSelector, null $aliases = null, array $on = [] ) : |
||
limit ( $limit ) : |
||
lockForUpdate ( ) : |
||
offset ( $offset ) : |
||
options ( array $options ) | ||
order ( $columns ) : |
||
rightJoin ( $relationSelector, null $aliases = null, array $on = [] ) : |
||
select ( $columns, integer $type = PDO::FETCH_NUM ) : |
||
selectDistinct ( $columns, integer $type = PDO::FETCH_NUM ) : |
||
update ( array $attributes ) : integer | Runs an update query against a set of models | |
using ( $relationSelector, null $aliases ) : |
||
where ( string $where = '', array $values = [] ) : |
||
with ( $relationSelector ) : |
Method | Description | |
---|---|---|
_addRelationToFetch ( $relationToFetch ) | ||
addJoin ( |
||
aliasPrefixForSelect ( $alias ) | ||
createModelJoins ( $relationSelector, $aliases, $type, $on ) | ||
getModelAliasOrTable ( ) | ||
isAlreadyAddedToFetch ( |
||
isAlreadyJoined ( |
||
selectModelColumns ( |
public __construct ( |
||
$model | ||
$db |
public deleteAll ( ) |
public deleteEach ( ) |
public fetchIterator ( integer $batchSize = 500 ) : Iterator | ||
$batchSize | integer | |
return | Iterator |
public innerJoin ( $relationSelector, null $aliases = null, array $on = [] ) : |
||
$relationSelector | - Relation object, relation name or nested relations 'rel1->rel2' | |
$aliases | null | - alias of the first joined table or array of aliases for nested joins |
$on | array | |
return |
public join ( $relationSelector, null $aliases = null, string $type = 'LEFT', array $on = [] ) : |
||
$relationSelector | - Relation object, relation name or nested relations 'rel1->rel2' | |
$aliases | null | - alias of the first joined table or array of aliases for nested joins |
$type | string | - join type, defaults to LEFT |
$on | array | |
return |
public offset ( $offset ) : |
||
$offset | ||
return |
public order ( $columns ) : |
||
$columns | ||
return |
public rightJoin ( $relationSelector, null $aliases = null, array $on = [] ) : |
||
$relationSelector | - Relation object, relation name or nested relations 'rel1->rel2' | |
$aliases | null | - alias of the first joined table or array of aliases for nested joins |
$on | array | |
return |
public selectDistinct ( $columns, integer $type = PDO::FETCH_NUM ) : |
||
$columns | ||
$type | integer | |
return |
public with ( $relationSelector ) : |
||
$relationSelector | - Relation object, relation name or nested relations 'rel1->rel2' | |
return |