phalcon/cphalcon · error · Phalcon\Mvc\Model\Query\Exceptions\UnknownPhqlExpression

Unknown expression

Error message

Unknown expression

What it means

Error "Unknown expression" thrown in phalcon/cphalcon.

Source

Thrown at phalcon/Mvc/Model/Query.zep:2426

        }

        /**
         * If the expression does not have a type it's a list of nodes
         */
        if isset expr[0] {
            let listItems = [];

            for exprListItem in expr {
                let listItems[] = this->getExpression(exprListItem);
            }

            return [
                "type": "list",
                listItems
            ];
        }

        throw new UnknownPhqlExpression();
    }

    /**
     * Resolves an expression in a single call argument
     */
    final protected function getFunctionCall( array expr) -> array
    {
        var arguments, argument;
        array functionArgs;
        int distinct;

        if fetch arguments, expr["arguments"] {
            if isset expr["distinct"] {
                let distinct = 1;
            } else {
                let distinct = 0;
            }

View on GitHub (pinned to b7419de9cd)

When it happens

Trigger: Thrown at phalcon/Mvc/Model/Query.zep:2426 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21). Data as JSON: /api/errors/944df12b804e55dd. Report an issue: GitHub.