ActiveRecord.php
private static function filterCondition($condition)
    {
        foreach($condition as $k => $v) {
            if (is_array($v)) {
                $condition[$k] = array_values($v);
                foreach($v as $vv) {
                    if (is_array($vv)) {
                        throw new InvalidArgumentException('Nested arrays are not allowed in condition for findAll() and findOne().');
                    }
                }
            }
        }
        return $condition;
    }
private static function filterCondition($condition)
    {
        foreach($condition as $k => $v) {
            if (is_array($v)) {
                $condition[$k] = array_values($v);
                foreach($v as $vv) {
                    if (is_array($vv)) {
                        throw new InvalidArgumentException('Nested arrays are not allowed in condition for findAll() and findOne().');
                    }
                }
            }
        }
        return $condition;
    }
private static function filterCondition ( $ condition ) { foreach ( $ condition as $ k => $ v ) { if ( is_array ( $ v ) ) { $ condition [ $ k ] = array_values ( $ v ) ; foreach ( $ v as $ vv ) { if ( is_array ( $ vv ) ) { throw new InvalidArgumentException ( 'Nested arrays are not allowed in condition for findAll() and findOne().' ) ; } } } } return $ condition ; }
Filter out condition parts that are array valued, to prevent building arbitrary conditions.
@param array $condition
Filter out condition parts that are array valued to prevent building arbitrary conditions .