doctrine/orm · error · OutOfRangeException
Unknown property "%s" on class %s
Error message
Unknown property "%s" on class %s
What it means
Error "Unknown property "%s" on class %s" thrown in doctrine/orm.
Source
Thrown at src/Mapping/AssociationMapping.php:262
};
}
/** @param string $offset */
public function offsetExists(mixed $offset): bool
{
return isset($this->$offset) || in_array($offset, ['isOwningSide', 'type'], true);
}
final public function offsetGet(mixed $offset): mixed
{
return match ($offset) {
'isOwningSide' => $this->isOwningSide(),
'type' => $this->type(),
'isCascadeRemove' => $this->isCascadeRemove(),
'isCascadePersist' => $this->isCascadePersist(),
'isCascadeRefresh' => $this->isCascadeRefresh(),
'isCascadeDetach' => $this->isCascadeDetach(),
default => property_exists($this, $offset) ? $this->$offset : throw new OutOfRangeException(sprintf(
'Unknown property "%s" on class %s',
$offset,
static::class,
)),
};
}
public function offsetSet(mixed $offset, mixed $value): void
{
assert($offset !== null);
if (! property_exists($this, $offset)) {
throw new OutOfRangeException(sprintf(
'Unknown property "%s" on class %s',
$offset,
static::class,
));
}
View on GitHub (pinned to d9b9ff7301)
When it happens
Trigger: Thrown at src/Mapping/AssociationMapping.php:262 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of doctrine/orm@d9b9ff7301 (2026-08-21).
Data as JSON: /api/errors/725c405091a66190.
Report an issue: GitHub.