protected function _inspectExpression(ExpressionInterface $expression, $bundle, Query $query)
    {
        if ($expression instanceof Comparison) {
            $expression = $this->_inspectComparisonExpression($expression, $bundle, $query);
        } elseif ($expression instanceof UnaryExpression) {
            $expression = $this->_inspectUnaryExpression($expression, $bundle, $query);
        }

        return $expression;
    }
protected function _inspectExpression(ExpressionInterface $expression, $bundle, Query $query)
    {
        if ($expression instanceof Comparison) {
            $expression = $this->_inspectComparisonExpression($expression, $bundle, $query);
        } elseif ($expression instanceof UnaryExpression) {
            $expression = $this->_inspectUnaryExpression($expression, $bundle, $query);
        }

        return $expression;
    }
protected function _inspectExpression ( ExpressionInterface $ expression , $ bundle , Query $ query ) { if ( $ expression instanceof Comparison ) { $ expression = $ this -> _inspectComparisonExpression ( $ expression , $ bundle , $ query ) ; } elseif ( $ expression instanceof UnaryExpression ) { $ expression = $ this -> _inspectUnaryExpression ( $ expression , $ bundle , $ query ) ; } return $ expression ; }
Analyzes the given WHERE expression, looks for virtual columns and alters
the expressions according.

@param \Cake\Database\ExpressionInterface $expression Expression to scope
@param string $bundle Consider attributes only for a specific bundle
@param \Cake\ORM\Query $query The query instance this expression comes from
@return \Cake\Database\ExpressionInterface The altered expression (or not)
Analyzes the given WHERE expression looks for virtual columns and alters the expressions according .