{"record":{"id":"9d4e48771207b10e","repo":"phalcon/cphalcon","slug":"a-dependency-injection-container-is-required-to-ac-9d4e48","errorCode":null,"errorMessage":"A dependency injection container is required to access the services related to the ORM","messagePattern":"A dependency injection container is required to access the services related to the ORM","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Exceptions\\ManagerOrmServicesUnavailable","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model/Manager.zep","lineNumber":837,"sourceCode":"     */\n    public function clearReusableObjects() -> void\n    {\n        let this->reusable = [];\n    }\n\n    /**\n     * Creates a Phalcon\\Mvc\\Model\\Query\\Builder\n     *\n     * @param array|string|null params\n     */\n    public function createBuilder(var params = null) -> <BuilderInterface>\n    {\n        var container;\n\n        let container = <DiInterface> this->container;\n\n        if unlikely typeof container != \"object\" {\n            throw new ManagerOrmServicesUnavailable();\n        }\n\n        /**\n         * Gets Builder instance from DI container\n         */\n        let this->builder = <BuilderInterface> container->get(\n            Builder::class,\n            [\n                params,\n                container\n            ]\n        );\n\n        return this->builder;\n    }\n\n    /**\n     * Creates a Phalcon\\Mvc\\Model\\Query without execute it","sourceCodeStart":819,"sourceCodeEnd":855,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model/Manager.zep#L819-L855","documentation":"Error \"A dependency injection container is required to access the services related to the ORM\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model/Manager.zep:837 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T13:17:26.733Z"}