LMongo\Eloquent\Model::newQuery PHP Méthode

newQuery() public méthode

Get a new query builder for the model's table.
public newQuery ( boolean $excludeDeleted = true ) : Builder
$excludeDeleted boolean
Résultat Builder
    public function newQuery($excludeDeleted = true)
    {
        $builder = new Builder($this->newBaseQueryBuilder());
        // Once we have the query builders, we will set the model instances so the
        // builder can easily access any information it may need from the model
        // while it is constructing and executing various queries against it.
        $builder->setModel($this)->with($this->with);
        if ($excludeDeleted and $this->softDelete) {
            $builder->where($this->getQualifiedDeletedAtColumn(), null);
        }
        return $builder;
    }
Model