Skip to content

Instantly share code, notes, and snippets.

@mysiar
Created March 18, 2020 12:32
Show Gist options
  • Save mysiar/277bd93423dc3f1d0b69556b49ece626 to your computer and use it in GitHub Desktop.
Save mysiar/277bd93423dc3f1d0b69556b49ece626 to your computer and use it in GitHub Desktop.
RamseyUuid
/**
     * @ORM\Column(type="uuid")
     * @ORM\GeneratedValue(strategy="CUSTOM")
     * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
     * @ORM\Id()
     *
     * @var \Ramsey\Uuid\Uuid
     */
    protected $id;
doctrine:
    dbal:
        default_connection: default
        types:
            uuid: Ramsey\Uuid\Doctrine\UuidType
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment