No description
Find a file
2022-04-30 21:46:59 +02:00
.woodpecker Adding testing and code-style pipelines 2022-04-30 21:45:57 +02:00
Classes RUN phpcbf 2022-04-30 21:38:36 +02:00
Configuration/Testing update project; fit neos/flow 4 2017-03-13 16:59:04 +01:00
Migrations/Mysql RUN phpcbf 2022-04-30 21:38:36 +02:00
Tests/Functional RUN phpcbf 2022-04-30 21:38:36 +02:00
CHANGELOG.md added CHANGELOG.md 2021-09-10 12:09:20 +02:00
composer.json fixes with code inspection 2021-09-21 10:39:03 +02:00
License.txt TASK: Preparing first public release 2016-06-24 20:57:06 +02:00
README.md optimized README.md 2021-09-10 12:37:11 +02:00

DigiComp.Sequence

This is a very simple tool, helping in generation of gapless sequences. For this task it relies on key integrity of the database of your choice.

Usage is quite simple also:

/**
 * @param SequenceNumberGenerator $sequenceNumberGenerator
 */
public function __construct(SequenceNumberGenerator $sequenceNumberGenerator)
{
    $this->orderId = $sequenceNumberGenerator->getNextNumberFor($this);
}

getNextNumberFor allows you to give an object (which will be resolved to its FQCN) or a custom sequence name.

The SequenceCommandController helps you to advance the current sequence number, in case of migrations or similar. See ./flow help sequence:advance if interested.