LMongo\Eloquent\Relations\MorphOneOrMany::getAndResetWheres PHP Method

getAndResetWheres() public method

The remaining constraints on the query will be reset and returned.
public getAndResetWheres ( ) : array
return array
    public function getAndResetWheres()
    {
        // We actually need to remove two where clauses from polymorphic queries so we
        // will make an extra call to clear the second where clause here so that it
        // will not get in the way. This parent method will remove the other one.
        $this->removeSecondWhereClause();
        return parent::getAndResetWheres();
    }