Doctrine initializes the ID generator strategy in Doctrine\ORM\Mapping\ClassMetadataFactory . The factory has a large switch , toggling <STRATEGY_NAME> , which you provide in your YAML configuration:
generator: strategy: <STRATEGY_NAME>
The selected strategy then extracts additional parameters from your configuration.
All available strategies are listed in the Doctrine Guide . Sequence Generator strategy options are described in detail in the next subsection .
Based on your configuration, you are currently setting parameters for the Sequence Generator strategy, instructing Doctrine to use the Identifier strategy. Perhaps this is an unexpected behavior that you experience?
You can read the source code of the corresponding factory lines to clarify your expectations.
source share