*/ public readonly array $identifier; /** * @param class-string $entityClass The entity class name. In a inheritance hierarchy it should always be the root entity class. * @param array $identifier The entity identifier */ public function __construct( public readonly string $entityClass, array $identifier, ) { ksort($identifier); $this->identifier = $identifier; parent::__construct(str_replace('\\', '.', strtolower($entityClass) . '_' . implode(' ', $identifier))); } }