PHP Class LMongo\Eloquent\Relations\MorphMany

Inheritance: extends MorphOneOrMany
显示文件 Open project: navruzm/lmongo Class Usage Examples

Public Methods

Method Description
getResults ( ) : mixed Get the results of the relationship.
initRelation ( array $models, string $relation ) : void Initialize the relation on a set of models.
match ( array $models, Collection $results, string $relation ) : array Match the eagerly loaded results to their parents.

Method Details

getResults() public method

Get the results of the relationship.
public getResults ( ) : mixed
return mixed

initRelation() public method

Initialize the relation on a set of models.
public initRelation ( array $models, string $relation ) : void
$models array
$relation string
return void

match() public method

Match the eagerly loaded results to their parents.
public match ( array $models, Collection $results, string $relation ) : array
$models array
$results LMongo\Eloquent\Collection
$relation string
return array