LMongo\Eloquent\Relations\HasOneOrMany::matchMany PHP Method

matchMany() public method

Match the eagerly loaded results to their many parents.
public matchMany ( array $models, Collection $results, string $relation ) : array
$models array
$results LMongo\Eloquent\Collection
$relation string
return array
    public function matchMany(array $models, Collection $results, $relation)
    {
        return $this->matchOneOrMany($models, $results, $relation, 'many');
    }