c4ys/doctrine-snowflakes-bundle

This Bundle provides an Snowflake-ID Generator for Doctrine

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/c4ys/doctrine-snowflakes-bundle

1.0.3 2021-01-28 07:32 UTC

This package is auto-updated.

Last update: 2025-10-14 08:54:52 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;