interface
Illuminate
/
Contracts
/
Database
/
Eloquent
/
SupportsPartialRelations
You are viewing an older version of the documentation. For the latest, please visit master documentation.
SupportsPartialRelations
Methods
public
ofMany ( $column , $aggregate , $relation ) : $this
Indicate that the relation is a single result of a larger one-to-many relationship.
Parameters
- $column string|null
- $aggregate string|Closure |null
- $relation string
public
isOneOfMany ( ) : bool
Determine whether the relationship is a one-of-many relationship.
public
getOneOfManySubQuery ( ) : Builder |void
Get the one of many inner join subselect query builder instance.