PHP Class LMongo\Eloquent\Relations\HasMany

Inheritance: extends HasOneOrMany
Datei anzeigen Open project: navruzm/lmongo

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