• Majed6's avatar
    Add style fixes · 92851a2b
    Majed6 authored
    (cherry picked from commit 1115bf5e545f2edc06261336aefbd1e1c5d188fc)
    92851a2b
MorphMany.php 529 Bytes
<?php

namespace Jenssegers\Mongodb\Relations;

use Illuminate\Database\Eloquent\Model as EloquentModel;
use Illuminate\Database\Eloquent\Relations\MorphMany as EloquentMorphMany;

class MorphMany extends EloquentMorphMany
{
    /**
     * Get the name of the "where in" method for eager loading.
     *
     * @param \Illuminate\Database\Eloquent\Model $model
     * @param string $key
     *
     * @return string
     */
    protected function whereInMethod(EloquentModel $model, $key)
    {
        return 'whereIn';
    }
}