BelongsToMany
- Full name:
\Qubus\Expressive\ActiveRecord\Relations\BelongsToMany
- Parent class:
\Qubus\Expressive\ActiveRecord\Relations\Relation
Properties
pivotBuilder
pivotResult
foreignKey
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
Parameters:
Parameter | Type | Description |
---|---|---|
$parent | \Qubus\Expressive\ActiveRecord\Model |
getResults
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
- This method is abstract.
setJoin
- This method is abstract.
match
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$parent | \Qubus\Expressive\ActiveRecord\Model |
eagerLoad
Parameters:
Parameter | Type | Description |
---|---|---|
$parentRows | mixed | |
$relatedKeys | mixed | |
$relation | mixed |
relate
Parameters:
Parameter | Type | Description |
---|---|---|
$parent | \Qubus\Expressive\ActiveRecord\Model |
getIterator
count
__call
Parameters:
Parameter | Type | Description |
---|---|---|
$name | mixed | |
$param | mixed |
Automatically generated on 2025-10-13