Class Query
The class offers many features to compose model queries. Most query related
methods of the ICanBoogie\ActiveRecord\Model
class create a ICanBoogie\ActiveRecord\Query
object that is returned for
further specification, such as filters or limits.
- ICanBoogie\ActiveRecord\Query implements IteratorAggregate uses ICanBoogie\PrototypeTrait (not available)
Methods summary
protected
array
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
|
protected
|
|
protected
array
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
array
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
public
|
|
public
array
|
|
protected
array
|
|
public
mixed
|
|
protected
mixed
|
|
protected
array
|
|
protected
string
|
|
public
boolean|array
|
|
protected
boolean|array
|
|
public
integer|array
|
|
protected
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
boolean
|
|
public
|
Magic methods summary
public
|
Properties summary
protected
string
|
$select
Part of the |
|
protected
array
|
$joints
|
#
[]
|
protected
array
|
$joints_args
Joints arguments. |
#
[]
|
protected
array
|
$conditions
The conditions collected from |
#
[]
|
protected
array
|
$conditions_args
Arguments for the conditions. |
#
[]
|
protected
string
|
$group
Part of the |
|
protected
mixed
|
$order
Part of the |
|
protected
string
|
$having
Part of the |
|
protected
array
|
$having_args
Arguments to the |
#
[]
|
protected
integer
|
$offset
The number of records the skip before fetching. |
|
protected
integer
|
$limit
The maximum number of records to fetch. |
|
protected
mixed
|
$mode
Fetch mode. |
|
protected
|
$model
The target model of the query. |
|
protected static
array
|
$scopes_by_classes
Cache available scopes by model class. |
#
[]
|
Magic properties
public read-only
array
|
$all
An array with all the records matching the query. |
public read-only
mixed
|
$one
The first record matching the query. |
public read-only
array
|
$pairs
An array of key/value pairs. |
public read-only
array
|
$rc
The first column of the first row matching the query. |
public read-only
integer
|
$count
The number of records matching the query. |
public read-only
boolean|array
|
$exists
|
public read-only
|
$model
The target model of the query. |
public read-only
array
|
$joints
The joints collection from |
public read-only
array
|
$joints_args
The arguments to the joints. |
public read-only
array
|
$conditions
The conditions collected from |
public read-only
array
|
$conditions_args
The arguments to the conditions. |
public read-only
array
|
$having_args
The arguments to the |
public read-only
array
|
$args
Returns the arguments to the query. |
public read-only
|
$prepared
Return a prepared query. |