jop-software/doctrine-uuid-generators 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jop-software/doctrine-uuid-generators

Composer 安装命令:

composer require jop-software/doctrine-uuid-generators

包简介

Generate UUIDs for your doctrine models

README 文档

README

Doctrine UUID generators

Generate UUIDs for your doctrine entities

CI CI

Installation

composer require jop-software/doctrine-uuid-generators

Usage

You can use all the generators in the CustomIdGenerator annotation.

<?php

namespace App\Entity;

use App\Repository\EntityNameRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use JopSoftware\DoctrineUuidGenerators\UuidV4Generator;
use Symfony\Component\Uid\UuidV4;

#[ORM\Entity(repositoryClass: EntityNameRepository::class)]
class EntityName
{
    #[ORM\Id]
    #[ORM\GeneratedValue(strategy: 'CUSTOM')]
    #[ORM\Column(type: "uuid", unique: true)]
    #[ORM\CustomIdGenerator(class: UuidV4Generator::class)]
    private UuidV4|null $id = null;
    
    public function getId(): UuidV4|null
    {
        return $this->id;
    }
}

Available generators

Versions 3 and 5 are not implemented currently, because they are namespace based and there is no way currently to pass such a namespace to the generator in the CustomIdGenerator annotation.

Versions

Version State php Version
2.x Supported ^8.1
1.x Security Support ^8.0

Professional support

Professional support is available. Please contact support@jop-software.de for more information.

License

This project is licensed under the MIT LICENSE

© 2022-2024, jop-software Inh. Johannes Przymusinski

统计信息

  • 总下载量: 3.72k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固