The doc comment array<non-empty-string, RelationMap> at position 2 could not be parsed: Unknown type name 'non-empty-string' at position 2 in array<non-empty-string, RelationMap>.
Loading history...
18
private array $relMaps = [];
19
20
7418
public function __construct(
21
private ?ORMInterface $orm,
22
) {
23
}
24
25
/**
26
* Get relation map associated with the given class.
27
*/
28
6874
public function getRelationMap(string $entity): RelationMap
29
{
30
6874
if (isset($this->relMaps[$entity])) {
31
5396
return $this->relMaps[$entity];
32
}
33
6874
if ($this->orm === null) {
34
throw new ORMException('Relation Map is not prepared.');