DynamicActiveRecord.php
public static function dynColExpression($attrs) {
        if (!$attrs) {
            return null;
        }

        $params = [];

        // todo For now we only have Maria. Add PgSQL and generic JSON.
        static::encodeArrayForMaria($attrs);
        $sql = static::dynColSqlMaria($attrs, $params);

        return new \yii\db\Expression($sql, $params);
    }
public static function dynColExpression($attrs) {
        if (!$attrs) {
            return null;
        }

        $params = [];

        // todo For now we only have Maria. Add PgSQL and generic JSON.
        static::encodeArrayForMaria($attrs);
        $sql = static::dynColSqlMaria($attrs, $params);

        return new \yii\db\Expression($sql, $params);
    }
public static function dynColExpression ( $ attrs ) { if ( ! $ attrs ) { return null ; } $ params = [ ] ; // todo For now we only have Maria. Add PgSQL and generic JSON. static :: encodeArrayForMaria ( $ attrs ) ; $ sql = static :: dynColSqlMaria ( $ attrs , $ params ) ; return new \ yii \ db \ Expression ( $ sql , $ params ) ; }
Creates a dynamic column SQL expression representing the given attributes.

@param array $attrs the dynamic attributes, which may be nested

@return null|\yii\db\Expression
Creates a dynamic column SQL expression representing the given attributes .