Skip to content

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

protected mixed $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
  • This method is abstract.

setJoin

public setJoin(): mixed
  • This method is abstract.

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

public count(): int

__call

public __call(mixed $name, mixed $param): mixed

Parameters:

Parameter Type Description
$name mixed
$param mixed


Automatically generated on 2025-10-13