PHP Класс LMongo\Eloquent\Relations\HasMany

Наследование: extends HasOneOrMany
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

getResults() публичный Метод

Get the results of the relationship.
public getResults ( ) : mixed
Результат mixed

initRelation() публичный Метод

Initialize the relation on a set of models.
public initRelation ( array $models, string $relation ) : void
$models array
$relation string
Результат void

match() публичный Метод

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
Результат array