BelongsToMany
Properties
pivotBuilder
protected ?string $pivotBuilder
pivotResult
protected mixed $pivotResult
foreignKey
protected string|int|null $foreignKey
otherKey
protected string|int|null $otherKey
Methods
__construct
public __construct(\Qubus\Expressive\ActiveRecord\Model $parent, \Qubus\Expressive\ActiveRecord\Model $related, mixed $pivotBuilder, string|int|null $foreignKey = null, string|int|null $otherKey = null): mixed
Parameters:
| Parameter | Type | Description |
$parent | \Qubus\Expressive\ActiveRecord\Model | |
$related | \Qubus\Expressive\ActiveRecord\Model | |
$pivotBuilder | mixed | |
$foreignKey | string|int|null | |
$otherKey | string|int|null | |
setJoin
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
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 | |