Tailor\Classes\Relations\CustomMultiJoinRelation
Overview
CustomMultiJoinRelation is used by tailor records, creating relationships to to other tailor records (entries fields).
Extends
- October\Rain\Database\Relations\MorphToMany
- October\Rain\Database\Relations\BelongsToMany
- Illuminate\Database\Eloquent\Relations\BelongsToMany
- Illuminate\Database\Eloquent\Relations\Relation
Implements
- Illuminate\Contracts\Database\Eloquent\Builder
- Illuminate\Contracts\Database\Query\Builder
Public Properties
There are no public properties in the class.
Show inherited public properties
Inherited Public Properties
- $countMode - sets this relation object is a 'count' helper. (defined in October\Rain\Database\Relations\BelongsToMany)
- $withTimestamps - Indicates if timestamps are available on the pivot table. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $morphMap - An array to map morph names to their class names in the database. (defined in Illuminate\Database\Eloquent\Relations\Relation)
Protected Properties
protected string $fieldName
Show inherited protected properties
Inherited Protected Properties
- $morphType - is type of the polymorphic relation. (defined in October\Rain\Database\Relations\MorphToMany)
- $morphClass - is the class name of the morph type constraint. (defined in October\Rain\Database\Relations\MorphToMany)
- $inverse - indicates if we are connecting the inverse of the relation. (defined in October\Rain\Database\Relations\MorphToMany)
- $table - The intermediate table for the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $foreignPivotKey - The foreign key of the parent model. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $relatedPivotKey - The associated key of the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $parentKey - The key name of the parent model. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $relatedKey - The key name of the related model. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $relationName - The "name" of the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $pivotColumns - The pivot table columns to retrieve. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $pivotWheres - Any pivot table restrictions for where clauses. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $pivotWhereIns - Any pivot table restrictions for whereIn clauses. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $pivotWhereBetweens - Any pivot table restrictions for whereBetween clauses. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $pivotWhereNulls - Any pivot table restrictions for whereNull clauses. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $pivotValues - The default values for the pivot columns. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $pivotCreatedAt - The custom pivot table column for the created_at timestamp. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $pivotUpdatedAt - The custom pivot table column for the updated_at timestamp. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $using - The class name of the custom pivot model to use for the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $accessor - The name of the accessor to use for the "pivot" relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $query - The Eloquent query builder instance. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- $parent - The parent model instance. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- $related - The related model instance. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- $eagerKeysWereEmpty - Indicates whether the eagerly loaded relation should implicitly return an empty collection. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- $constraints - Indicates if the relation is adding constraints. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- $constraintsForNestedRelations - Indicates whether constraints should be enabled for nested relation attributes. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- $requireMorphMap - Prevents morph relationships without a morph map. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- $selfJoinCount - The count of self joins. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- $macros - The registered string macros. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- $declaringInverseRelationship - The name of the declaring model's relationship on the pivot. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $relatedInverseRelationship - The name of the related model's relationship on the pivot. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- $pivotSiteScope - indicates if pivot queries should be scoped by site_id. (defined in October\Rain\Database\Relations\BelongsToMany)
Public Methods
public __construct()
public __construct(
$query,
$parent,
$name,
$table,
$foreignKey,
$otherKey,
$parentKey,
$relatedKey,
$relationName = null,
$inverse = false
): void
__construct is inherited
public addDefinedConstraintsToQuery()
public addDefinedConstraintsToQuery($query, $args = null): void
public addDefinedConstraintsToRelation()
public addDefinedConstraintsToRelation($relation, $args = null): void
public addEagerConstraints()
public addEagerConstraints($models): void
public attach()
public attach($id, $attributes = [], $touch = true): void
attach a model to the parent
public getRelationExistenceQuery()
public getRelationExistenceQuery(
$query,
$parentQuery,
$columns = [ 0 => '*']
): void
public newPivotQuery()
public newPivotQuery(): void
newPivotQuery creates a new query builder for the pivot table.
Inherited Public Methods
- __call() - Handle dynamic method calls to the relationship. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- __callStatic() - Dynamically handle calls to the class. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- __clone() - Force a clone of the underlying query builder when cloning. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- add() - a model to this relationship type. (defined in October\Rain\Database\Relations\BelongsToMany)
- addConstraints() - Set the base constraints on the relation query. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- addDefinedConstraints() - to the relation query. (defined in October\Rain\Database\Relations\MorphToMany)
- allRelatedIds() - Get all of the IDs for the related models. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- as() - Specify the custom pivot accessor to use for the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- attachOrFail() - Attach a model to the parent within a transaction. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- chaperone() - Instruct Eloquent to link the declaring and related models back to the pivot after the relationship query has run. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- chunk() - Chunk the results of the query. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- chunkById() - Chunk the results of a query by comparing numeric IDs. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- chunkByIdDesc() - Chunk the results of a query by comparing IDs in descending order. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- chunkMap() - Run a map over each item while chunking. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- create() - a new instance of this related model with deferred binding support. (defined in October\Rain\Database\Relations\BelongsToMany)
- createMany() - creates multiple related models with deferred binding support. (defined in October\Rain\Database\Relations\BelongsToMany)
- createManyQuietly() - creates multiple models without raising any events, (defined in October\Rain\Database\Relations\BelongsToMany)
- createOrFirst() - attempts to create the record, or if a unique constraint. (defined in October\Rain\Database\Relations\BelongsToMany)
- createQuietly() - creates a new instance without raising any events, (defined in October\Rain\Database\Relations\BelongsToMany)
- createdAt() - Get the name of the "created at" column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- cursor() - Get a lazy collection for the given query. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- cursorPaginate() - using a cursor paginator. (defined in October\Rain\Database\Relations\BelongsToMany)
- cursorPaginateAtPage() - paginates using a cursor by passing the cursor directly. (defined in October\Rain\Database\Relations\BelongsToMany)
- cursorPaginateCustom() - paginates using a cursor with a custom cursor name. (defined in October\Rain\Database\Relations\BelongsToMany)
- detach() - overrides detach() method of BelongToMany relation. (defined in October\Rain\Database\Relations\BelongsToMany)
- detachOrFail() - Detach models from the relationship within a transaction. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- each() - Execute a callback over each item while chunking. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- eachById() - Execute a callback over each item while chunking by ID. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- enforceMorphMap() - Define the morph map for polymorphic relations and require all morphed models to be explicitly mapped. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- find() - Find a related model by its primary key. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- findMany() - Find multiple related models by their primary keys. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- findOr() - Find a related model by its primary key or call a callback. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- findOrFail() - Find a related model by its primary key or throw an exception. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- findOrNew() - Find a related model by its primary key or return a new instance of the related model. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- findSole() - Find a sole related model by its primary key. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- first() - Execute the query and get the first result. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- firstOr() - Execute the query and get the first result or call a callback. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- firstOrCreate() - Get the first record matching the attributes. If the record is not found, create it. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- firstOrFail() - Execute the query and get the first result or throw an exception. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- firstOrNew() - Get the first related model record matching the attributes or instantiate it. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- firstWhere() - Add a basic where clause to the query, and return the first result. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- flushMacros() - Flush the existing macros. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- get() - Execute the query as a "select" statement. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getBaseQuery() - Get the base query builder driving the Eloquent builder. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getEager() - Get the relationship for eager loading. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getExistenceCompareKey() - Get the key for comparing against the parent key in "has" query. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getForeignKey() - (defined in October\Rain\Database\Relations\BelongsToMany)
- getForeignPivotKeyName() - Get the foreign key for the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getMorphAlias() - Get the alias associated with a custom polymorphic class. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getMorphClass() - get the class name of the parent model. (defined in October\Rain\Database\Relations\MorphToMany)
- getMorphType() - gets the foreign key "type" name. (defined in October\Rain\Database\Relations\MorphToMany)
- getMorphedModel() - Get the model associated with a custom polymorphic type. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getOtherKey() - (defined in October\Rain\Database\Relations\BelongsToMany)
- getParent() - Get the parent model of the relation. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getParentKeyName() - Get the parent key for the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getPivotAccessor() - Get the name of the pivot accessor for this relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getPivotClass() - Get the class being used for pivot models. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getPivotColumns() - Get the pivot columns for this relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getQualifiedForeignPivotKeyName() - Get the fully-qualified foreign key for the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getQualifiedParentKeyName() - Get the fully-qualified parent key name for the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getQualifiedRelatedKeyName() - Get the fully-qualified related key name for the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getQualifiedRelatedPivotKeyName() - Get the fully-qualified "related key" for the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getQuery() - Get the underlying query for the relation. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getRelated() - Get the related model of the relation. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getRelatedClass() - Get the class name of the related model. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getRelatedKeyName() - Get the related key for the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getRelatedPivotKeyName() - Get the "related key" for the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getRelationCountHash() - Get a relationship join table hash. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getRelationExistenceCountQuery() - Add the constraints for a relationship count query. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getRelationExistenceQueryForSelfJoin() - Add the constraints for a relationship query on the same table. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getRelationName() - Get the relationship name for the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getResults() - Get the results of the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getSimpleValue() - is a helper for getting this relationship simple value, (defined in October\Rain\Database\Relations\BelongsToMany)
- getTable() - Get the intermediate table for the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- hasMacro() - Checks if macro is registered. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- hasPivotColumn() - Determine whether the given column is defined as a pivot column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- incrementOrCreate() - Create a related record matching the attributes, or increment the existing record. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- initRelation() - (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- isPivotSiteScoped() - returns true if pivot queries should be scoped by site_id. (defined in October\Rain\Database\Relations\MorphToMany)
- lazy() - Query lazily, by chunks of the given size. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- lazyById() - Query lazily, by chunking the results of a query by comparing IDs. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- lazyByIdDesc() - Query lazily, by chunking the results of a query by comparing IDs in descending order. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- limit() - Set the "limit" value of the query. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- macro() - Register a custom macro. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- macroCall() - Dynamically handle calls to the class. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- match() - (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- mixin() - Mix another object into the class. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- morphMap() - Set or get the morph map for polymorphic relations. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- newExistingPivot() - Create a new existing pivot model instance. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- newPivot() - creates a new pivot model instance. (defined in October\Rain\Database\Relations\MorphToMany)
- newPivotStatement() - Get a new plain query builder for the pivot table. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- newPivotStatementForId() - Get a new pivot statement for a given "other" ID. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- noConstraints() - Run a callback with constraints disabled on the relation. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- noConstraintsForRelation() - Run a callback without constraints while preserving them for nested relation attributes. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- orWherePivot() - Set an "or where" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- orWherePivotBetween() - Set a "or where between" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- orWherePivotIn() - Set an "or where in" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- orWherePivotNotBetween() - Set a "or where not between" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- orWherePivotNotIn() - Set an "or where not in" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- orWherePivotNotNull() - Set a "or where not null" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- orWherePivotNull() - Set a "or where null" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- orderByPivot() - Add an "order by" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- orderByPivotDesc() - Add an "order by desc" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- orderedChunkById() - Chunk the results of a query by comparing IDs in a given order. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- paginate() - gets a paginator for the "select" statement that complies with October Rain. (defined in October\Rain\Database\Relations\BelongsToMany)
- paginateAtPage() - paginates by passing the page number directly. (defined in October\Rain\Database\Relations\BelongsToMany)
- paginateCustom() - paginates using a custom page name. (defined in October\Rain\Database\Relations\BelongsToMany)
- qualifyPivotColumn() - Qualify the given column name by the pivot table. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- rawUpdate() - Run a raw update against the base query. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- relatedUpdatedAt() - Get the name of the related model's "updated at" column. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- remove() - a model from this relationship type. (defined in October\Rain\Database\Relations\BelongsToMany)
- requireMorphMap() - Prevent polymorphic relationships from being used without model mappings. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- requiresMorphMap() - Determine if polymorphic relationships require explicit model mapping. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- save() - the supplied related model with deferred binding support. (defined in October\Rain\Database\Relations\BelongsToMany)
- saveMany() - saves multiple models with deferred binding support. (defined in October\Rain\Database\Relations\BelongsToMany)
- saveManyQuietly() - saves multiple models without raising any events, (defined in October\Rain\Database\Relations\BelongsToMany)
- saveQuietly() - saves the model without raising any events, (defined in October\Rain\Database\Relations\BelongsToMany)
- setSimpleValue() - helper for setting this relationship using various expected. (defined in October\Rain\Database\Relations\BelongsToMany)
- simplePaginate() - using a simple paginator. (defined in October\Rain\Database\Relations\BelongsToMany)
- simplePaginateAtPage() - simply paginates by passing the page number directly. (defined in October\Rain\Database\Relations\BelongsToMany)
- simplePaginateCustom() - simply paginates using a custom page name. (defined in October\Rain\Database\Relations\BelongsToMany)
- sole() - Execute the query and get the first result if it's the sole matching record. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- sync() - Sync the intermediate tables with a list of IDs or collection of models. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- syncOrFail() - Sync the intermediate tables with a list of IDs or collection of models within a transaction. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- syncWithPivotValues() - Sync the intermediate tables with a list of IDs or collection of models with the given pivot values. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- syncWithPivotValuesOrFail() - Sync the intermediate tables with a list of IDs with the given pivot values within a transaction. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- syncWithoutDetaching() - Sync the intermediate tables with a list of IDs without detaching. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- syncWithoutDetachingOrFail() - Sync the intermediate tables with a list of IDs without detaching within a transaction. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- take() - Alias to set the "limit" value of the query. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- toBase() - Get a base query builder instance. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- toggle() - Toggles a model (or models) from the parent. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- toggleOrFail() - Toggles a model (or models) from the parent within a transaction. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- touch() - Touch all of the related models for the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- touchIfTouching() - If we're touching the parent model, touch. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- updateExistingPivot() - Update an existing pivot record on the table. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- updateExistingPivotOrFail() - Update an existing pivot record on the table within a transaction. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- updateOrCreate() - Create or update a related record matching the attributes, and fill it with values. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- updatedAt() - Get the name of the "updated at" column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- using() - Specify the custom pivot model to use for the relationship. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- wherePivot() - Set a where clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- wherePivotBetween() - Set a "where between" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- wherePivotIn() - Set a "where in" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- wherePivotNotBetween() - Set a "where pivot not between" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- wherePivotNotIn() - Set a "where not in" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- wherePivotNotNull() - Set a "where not null" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- wherePivotNull() - Set a "where null" clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- withConstraints() - Run a callback with constraints enabled on the relation. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- withConstraintsForNestedRelation() - Run a callback with constraints when resolving a nested relation attribute. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- withDeferred() - returns a new model query with deferred bindings added, this. (defined in October\Rain\Database\Relations\BelongsToMany)
- withDeferredQuery() - returns the supplied model query, or current model query, with. (defined in October\Rain\Database\Relations\BelongsToMany)
- withPivot() - Set the columns on the pivot table to retrieve. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- withPivotValue() - Set a where clause for a pivot table column. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- withTimestamps() - Specify that the pivot table has creation and update timestamps. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- withoutChaperone() - Remove the chaperone relationships for this query. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
Protected Methods
protected addWhereConstraints()
protected addWhereConstraints( ): Tailor\Classes\Relations\CustomMultiJoinRelation
addWhereConstraints sets the where clause for the relation query
protected baseAttachRecord()
protected baseAttachRecord(int $id, bool $timed): array
baseAttachRecord creates a new pivot attachment record.
protected newSimpleRelationQuery()
protected newSimpleRelationQuery($ids): void
Show inherited protected methods
Inherited Protected Methods
- addPivotSiteScopeConstraints() - adds site_id constraint to pivot queries if enabled. (defined in October\Rain\Database\Relations\MorphToMany)
- addTimestampsToAttachment() - Set the creation and update timestamps on an attach record. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- aliasedPivotColumns() - Get the pivot columns for the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- applyChaperonesToPivot() - Apply chaperone relationships to a pivot model instance. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- attachNew() - Attach all of the records that aren't in the given current records. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- attachUsingCustomClass() - Attach a model to the parent using a custom class. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- buildDictionary() - Build model dictionary keyed by the relation's foreign key. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- buildMorphMapFromModels() - Builds a table-keyed array from model class names. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- castAttributes() - Cast the given pivot attributes. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- castKey() - Cast the given key to convert to primary key type. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- castKeys() - Cast the given keys to integers if they are numeric and string otherwise. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- detachUsingCustomClass() - Detach models from the relationship using a custom class. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- extractAttachIdAndAttributes() - Get the attach record ID and extra attributes. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- formatAttachRecord() - Create a full attachment record payload. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- formatAttachRecords() - Create an array of records to insert into the pivot table. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- formatRecordsList() - Format the sync / toggle record list so that it is keyed by ID. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- forwardCallTo() - Forward a method call to the given object. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- forwardDecoratedCallTo() - Forward a method call to the given object, returning $this if the forwarded call returned itself. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getCurrentlyAttachedPivots() - Get the pivot models that are currently attached. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getCurrentlyAttachedPivotsForIds() - Get the pivot models that are currently attached, filtered by related model keys. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getDictionaryKey() - Get a dictionary key attribute - casting it to a string if necessary. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getKeys() - Get all of the primary keys for an array of models. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getPivotSiteScopeValue() - returns the current site_id value for pivot records. (defined in October\Rain\Database\Relations\MorphToMany)
- getRelationDefinitionForDefinedConstraints() - returns the relation definition for the. (defined in October\Rain\Database\Relations\MorphToMany)
- getRelationQuery() - Get the query builder that will contain the relationship constraints. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- getTypeSwapValue() - Converts a given value to a given type value. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- getWithDeferredQualifiedKeyName() - returns the related "slave id" key. (defined in October\Rain\Database\Relations\BelongsToMany)
- guessInverseRelation() - Attempt to guess the name of the inverse of the relation. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- guessPivotInverseRelation() - Attempt to guess the inverse relation name on the pivot for a given model. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- hydratePivotRelation() - Hydrate the pivot table relationship on the models. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- migratePivotAttributes() - Get the pivot attributes from a model. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- parseId() - Get the ID from the given mixed value. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- parseIds() - Get all of the IDs from the given mixed value. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- performDeferredLeftJoin() - left joins the deferred bindings table. (defined in October\Rain\Database\Relations\BelongsToMany)
- performJoin() - Set the join clause for the relation query. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- performLeftJoin() - performJoin will join the pivot table opportunistically instead of mandatorily. (defined in October\Rain\Database\Relations\BelongsToMany)
- performSortableColumnJoin() - includes custom logic to replace the sort order column with. (defined in October\Rain\Database\Relations\BelongsToMany)
- prepareQueryBuilder() - Prepare the query builder for query execution. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- resolvePivotInverseRelation() - Resolve the inverse relation name on the pivot for a given model. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- resolveTableName() - Attempt to resolve the intermediate table name from the given string. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- shouldSelect() - gets the select columns for the relation query. (defined in October\Rain\Database\Relations\BelongsToMany)
- throwBadMethodCallException() - Throw a bad method call exception for the given method. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- touchingParent() - Determine if we should touch the parent on sync. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- updateExistingPivotUsingCustomClass() - Update an existing pivot record on the table via a custom class. (defined in Illuminate\Database\Eloquent\Relations\BelongsToMany)
- whereInEager() - Add a whereIn eager constraint for the given set of model keys to be loaded. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- whereInMethod() - Get the name of the "where in" method for eager loading. (defined in Illuminate\Database\Eloquent\Relations\Relation)
- withoutConstraints() - Run a callback with the configured relation constraints. (defined in Illuminate\Database\Eloquent\Relations\Relation)