dsnetpl/doctrine-column-comment-bundle 问题修复 & 功能扩展

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

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

dsnetpl/doctrine-column-comment-bundle

Composer 安装命令:

composer require dsnetpl/doctrine-column-comment-bundle

包简介

Modifying doctrine metadata so that doctrine knows that columns in the database have additional information - a comment.

README 文档

README

phpWorkflow

Bundle for Symfony >= 4.4.0

Modifying doctrine metadata so that doctrine knows that columns in the database have additional information.

Install

$ composer require dsnetpl/doctrine-column-comment-bundle

If in project is not using Symfony Flex, should will be need to register a bundle:

# config/bundles.php
return [
    // ...
    Dsnetpl\DoctrineColumnCommentBundle::class => ['all' => true],
];

Using

To add automatic comment to field in datatable in database. Should be modified Entity file:

//...

    /**
     * Comment must be written in docblock
     *
     * @ORM\Column()
     */
    private string $field;

//..

The next step is create diff on database:

$ bin/console doctrine:schema:update --dump-sql

If everything is well configured, the following query should be generated:

COMMENT ON COLUMN table.field IS 'Comment must be written in docblock'

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固