octobercms/october · error · SystemException
Blueprint does not specify a model class to use
Error message
Blueprint does not specify a model class to use
What it means
Base-class stub: Blueprint::getModelClassName always throws because this blueprint type defines no model class; any code path that needs the associated model (e.g. saving records) reached the unimplemented base method.
Solutions
- Use a blueprint type that defines a model (entry/record blueprints)
- Override getModelClassName in the blueprint subclass
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/tailor/classes/Blueprint.php:657 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/c27652e7f7751b2c.
Report an issue: GitHub.
Appendix: source
Thrown at modules/tailor/classes/Blueprint.php:657
public function getJoinTableName(): string
{
return $this->makeBlueprintTableName('join');
}
/**
* getRepeaterTableName
*/
public function getRepeaterTableName(): string
{
return $this->makeBlueprintTableName('repeater');
}
/**
* getModelClassName
*/
public function getModelClassName()
{
throw new SystemException('Blueprint does not specify a model class to use');
}
/**
* getPermissionCodeName
*/
public function getPermissionCodeName($name = null): string
{
$code = str_replace('-', '', $this->uuid);
if ($this instanceof \Tailor\Classes\Blueprint\GlobalBlueprint) {
$prefix = 'tailor.global.';
}
else {
$prefix = 'tailor.entry.';
}
$suffix = $name !== null ? '.' . $name : '';
View on GitHub (pinned to b608633a7e)