*/ public readonly array $ownerIdentifier; /** * @param array $ownerIdentifier The identifier of the owning entity. * @param class-string $entityClass The owner entity class */ public function __construct( public readonly string $entityClass, public readonly string $association, array $ownerIdentifier, ) { ksort($ownerIdentifier); $this->ownerIdentifier = $ownerIdentifier; parent::__construct(str_replace('\\', '.', strtolower($entityClass)) . '_' . implode(' ', $ownerIdentifier) . '__' . $association); } }