Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Doctrine Column Comment Bundle Laravel Package

dsnetpl/doctrine-column-comment-bundle

View on GitHub
Deep Wiki
Context7

Doctrine Column Comment Bundle

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'
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator