bug #40027 [DoctrineBridge] add missing @experimental annotation on Uid generators (nicolas-grekas)

This PR was merged into the 5.2 branch.

Discussion
----------

[DoctrineBridge] add missing `@experimental` annotation on Uid generators

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Forgotten when we created the classes.

Needed since I plan to remove all the `UuidV*` generators. They're useless and a more flexible approach based on https://github.com/doctrine/DoctrineBundle/pull/1284 is coming.

Commits
-------

e380102590 [DoctrineBridge] add missing `@experimental` annotation on Uid generators
This commit is contained in:
Fabien Potencier 2021-01-28 15:59:42 +01:00
commit b9094f4fd2
5 changed files with 13 additions and 1 deletions

View File

@ -5,7 +5,7 @@ CHANGELOG
-----
* added support for symfony/uid as `UlidType` and `UuidType` as Doctrine types
* added `UlidGenerator`, `UUidV1Generator`, `UuidV4Generator` and `UuidV6Generator`
* added `UlidGenerator`, `UuidV1Generator`, `UuidV4Generator` and `UuidV6Generator`
5.0.0
-----

View File

@ -15,6 +15,9 @@ use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Id\AbstractIdGenerator;
use Symfony\Component\Uid\Ulid;
/**
* @experimental in 5.2
*/
final class UlidGenerator extends AbstractIdGenerator
{
public function generate(EntityManager $em, $entity): Ulid

View File

@ -15,6 +15,9 @@ use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Id\AbstractIdGenerator;
use Symfony\Component\Uid\UuidV1;
/**
* @experimental in 5.2
*/
final class UuidV1Generator extends AbstractIdGenerator
{
public function generate(EntityManager $em, $entity): UuidV1

View File

@ -15,6 +15,9 @@ use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Id\AbstractIdGenerator;
use Symfony\Component\Uid\UuidV4;
/**
* @experimental in 5.2
*/
final class UuidV4Generator extends AbstractIdGenerator
{
public function generate(EntityManager $em, $entity): UuidV4

View File

@ -15,6 +15,9 @@ use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Id\AbstractIdGenerator;
use Symfony\Component\Uid\UuidV6;
/**
* @experimental in 5.2
*/
final class UuidV6Generator extends AbstractIdGenerator
{
public function generate(EntityManager $em, $entity): UuidV6