No description
Find a file
Robin Krahnen 03672e05c5 TASK: Apply migration Neos.Flow-20190425144900
Adjusts code to FlashMessageContainer renaming from "\Neos\Flow\Mvc" to
"\Neos\Flow\Mvc\FlashMessage".

Note: This migration did not produce any changes, so the commit simply
marks the migration as applied. This makes sure it will not be applied
again.
2021-09-23 16:14:00 +02:00
Classes reformat @ORM\Table 2021-09-22 14:26:09 +02:00
Configuration/Testing revised code 2021-09-22 11:34:34 +02:00
Migrations/Mysql revised code 2021-09-22 11:34:34 +02:00
Tests/Functional add missing return type hints 2021-09-23 08:55:03 +02:00
CHANGELOG.md added CHANGELOG.md 2021-09-10 12:09:20 +02:00
composer.json TASK: Apply migration Neos.Flow-20190425144900 2021-09-23 16:14:00 +02:00
License.txt add empty line at end of License.txt 2021-09-22 15:00:26 +02:00
README.md revised code 2021-09-22 11:34:34 +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 set the last sequence number, in case of migrations or similar. See ./flow help sequence:setlastnumberfor if interested.