c4ys / doctrine-snowflakes-bundle
This Bundle provides an Snowflake-ID Generator for Doctrine
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.4|^8.0
- kaigrassnick/snowflake-bundle: ^1.0
- symfony/framework-bundle: ^5.0
- symfony/orm-pack: ^2.0
This package is auto-updated.
Last update: 2025-01-14 07:11:47 UTC
README
This bundle provides a simple Snowflake ID Generator for Doctrine.
How To Use
Use as custom strategy inside your entity
/** * @var string * * @ORM\Id() * @ORM\GeneratedValue(strategy="CUSTOM") * @ORM\Column(type="bigint", unique=true, nullable=false) * @ORM\CustomIdGenerator(class="KaiGrassnick\DoctrineSnowflakeBundle\Generator\SnowflakeGenerator") */ private string $id;