phalcon/cphalcon · error · Phalcon\Mvc\Model\Exceptions\ManagerOrmServicesUnavailable
A dependency injection container is required to access the s
Error message
A dependency injection container is required to access the services related to the ORM
What it means
Error "A dependency injection container is required to access the services related to the ORM" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Model/Query/Builder.zep:1075
}
}
return phql;
}
/**
* Returns the query built
*/
public function getQuery() -> <QueryInterface>
{
var query, bindParams, bindTypes, phql, container;
let phql = this->getPhql();
let container = <DiInterface> this->container;
if unlikely typeof container != "object" {
throw new ManagerOrmServicesUnavailable();
}
/**
* Gets Query instance from DI container
*/
let query = <QueryInterface> container->get(
Query::class,
[phql, container]
);
// Set default bind params
let bindParams = this->bindParams;
if typeof bindParams == "array" {
query->setBindParams(bindParams);
}
// Set default bind types
let bindTypes = this->bindTypes;View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Model/Query/Builder.zep:1075 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/542eea03064902fe.
Report an issue: GitHub.