phalcon/cphalcon · error · Phalcon\Mvc\Model\MetaData\Exceptions\NoPropertyAnnotationsForClass

No properties with annotations were found in class {classNam

Error message

No properties with annotations were found in class {className}

What it means

Error "No properties with annotations were found in class {className}" thrown in phalcon/cphalcon.

Source

Thrown at phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep:52

            throw new InvalidContainer();
        }

        let annotations = container->get("annotations");

        let className = get_class(model),
            reflection = annotations->get(className);

        if unlikely typeof reflection != "object" {
            throw new NoAnnotationsForClass(className);
        }

        /**
         * Get the properties defined in
         */
        let propertiesAnnotations = reflection->getPropertiesAnnotations();

        if unlikely empty propertiesAnnotations {
            throw new NoPropertyAnnotationsForClass(className);
        }

        let orderedColumnMap = [],
            reversedColumnMap = [],
            hasReversedColumn = false;

        for property, propAnnotations in propertiesAnnotations {
            /**
             * All columns marked with the 'Column' annotation are considered columns
             */
            if !propAnnotations->has("Column") {
                continue;
            }

            /**
             * Fetch the 'column' annotation
             */
            let columnAnnotation = propAnnotations->get("Column");

View on GitHub (pinned to b7419de9cd)

When it happens

Trigger: Thrown at phalcon/Mvc/Model/MetaData/Strategy/Annotations.zep:52 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/edcce1a5cc868b83. Report an issue: GitHub.