Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Symfony UID #409

Open
vincentchalamon opened this issue Jun 29, 2023 · 0 comments
Open

Support Symfony UID #409

vincentchalamon opened this issue Jun 29, 2023 · 0 comments

Comments

@vincentchalamon
Copy link
Contributor

Description
Add Symfony UID component support on identifiers.

Example

id:
    generationStrategy: 'symfony_uid'
use Symfony\Bridge\Doctrine\Types\UuidType;
use Symfony\Component\Uid\Uuid;

/**
 * @see https://schema.org/identifier
 */
#[ORM\Id]
#[ORM\Column(type: UuidType::NAME, unique: true)]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
#[ApiProperty(types: ['https://schema.org/identifier'])]
private ?Uuid $id = null;
@vincentchalamon vincentchalamon self-assigned this Jun 29, 2023
@vincentchalamon vincentchalamon removed their assignment Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant