Skip to content

HasMany

Properties

foreignKey

protected int|string|null $foreignKey

Methods

__construct

public __construct(\Qubus\Expressive\ActiveRecord\Model $parent, \Qubus\Expressive\ActiveRecord\Model $related, string|int|null $foreignKey = null): mixed

Parameters:

Parameter Type Description
$parent \Qubus\Expressive\ActiveRecord\Model
$related \Qubus\Expressive\ActiveRecord\Model
$foreignKey string|int|null

setJoin

public setJoin(): mixed

match

public match(\Qubus\Expressive\ActiveRecord\Model $parent): array

Parameters:

Parameter Type Description
$parent \Qubus\Expressive\ActiveRecord\Model

getResults

public getResults(): mixed

Inherited 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