customGeneratorDefinition; if (! isset($customGeneratorDefinition['instance'])) { return; } assert($customGeneratorDefinition['instance'] instanceof AbstractIdGenerator); $class->setIdGeneratorType(ClassMetadata::GENERATOR_TYPE_CUSTOM); $class->setIdGenerator($customGeneratorDefinition['instance']); unset($customGeneratorDefinition['instance']); $class->setCustomGeneratorDefinition($customGeneratorDefinition); } }