Relation
- Full name:
\Qubus\Expressive\ActiveRecord\Relations\Relation - This class implements:
Countable, IteratorAggregate - This class is an Abstract class
Properties
parent
protected ?\Qubus\Expressive\ActiveRecord\Model $parent
protected ?\Qubus\Expressive\ActiveRecord\Model $related
join
eagerLoading
protected bool $eagerLoading
eagerKeys
protected array $eagerKeys
eagerResults
protected mixed $eagerResults
Methods
__construct
public __construct(\Qubus\Expressive\ActiveRecord\Model $parent, \Qubus\Expressive\ActiveRecord\Model $related): mixed
Parameters:
| Parameter | Type | Description |
$parent | \Qubus\Expressive\ActiveRecord\Model | |
$related | \Qubus\Expressive\ActiveRecord\Model | |
getResults
public getResults(): mixed
setJoin
match
public match(\Qubus\Expressive\ActiveRecord\Model $parent): mixed
- This method is abstract. Parameters:
| Parameter | Type | Description |
$parent | \Qubus\Expressive\ActiveRecord\Model | |
eagerLoad
public eagerLoad(mixed $parentRows, mixed $relatedKeys, mixed $relation): mixed
Parameters:
| Parameter | Type | Description |
$parentRows | mixed | |
$relatedKeys | mixed | |
$relation | mixed | |
relate
public relate(\Qubus\Expressive\ActiveRecord\Model $parent): mixed
Parameters:
| Parameter | Type | Description |
$parent | \Qubus\Expressive\ActiveRecord\Model | |
getIterator
public getIterator(): \Qubus\Expressive\ActiveRecord\Result|\Iterator
count
__call
public __call(mixed $name, mixed $param): mixed
Parameters:
| Parameter | Type | Description |
$name | mixed | |
$param | mixed | |