Locker\Repository\Report\EloquentRepository::setQuery PHP Method

setQuery() public method

Sets the query.
public setQuery ( $lrs_id, [type] $query, [type] $field, [type] $wheres )
$query [type]
$field [type]
$wheres [type]
    public function setQuery($lrs_id, $query, $field, $wheres)
    {
        return \Statement::select($field)->where('lrs_id', new \MongoId($lrs_id))->where($wheres, 'like', '%' . $query . '%')->distinct()->get()->take(6);
    }