MorphOneOrMany::initRelation()

abstract array initRelation(array $models, string $relation) Initialize the relation on a set of models. Parameters array $models string $relation Return Value array

MorphOneOrMany::getResults()

abstract mixed getResults() Get the results of the relationship. Return Value mixed

MorphOneOrMany::getRelationQueryForSelfRelation()

Builder getRelationQueryForSelfRelation(Builder $query, Builder $parent, array|mixed $columns = array('*')) Add the constraints for a relationship query on the same table. Parameters Builder $query Builder $parent array|mixed $columns Return Value Builder

MorphOneOrMany::getRelationQuery()

Builder getRelationQuery(Builder $query, Builder $parent, array|mixed $columns = array('*')) Get the relationship query. Parameters Builder $query Builder $parent array|mixed $columns Return Value Builder

MorphOneOrMany::getRelationCountQuery()

Builder getRelationCountQuery(Builder $query, Builder $parent) Add the constraints for a relationship count query. Parameters Builder $query Builder $parent Return Value Builder

MorphOneOrMany::getRelationCountHash()

string getRelationCountHash() Get a relationship join table hash. Return Value string

MorphOneOrMany::getRelated()

Model getRelated() Get the related model of the relation. Return Value Model

MorphOneOrMany::getQuery()

Builder getQuery() Get the underlying query for the relation. Return Value Builder

MorphOneOrMany::getQualifiedParentKeyName()

string getQualifiedParentKeyName() Get the fully qualified parent key name. Return Value string

MorphOneOrMany::getPlainMorphType()

string getPlainMorphType() Get the plain morph type name without the table. Return Value string