dsnetpl/doctrine-column-comment-bundle
schema:update) to maintain comments.COMMENT ON COLUMN support (e.g., some cloud databases).schema:update or CI/CD integration).SHOW CREATE TABLE queries)."This lightweight bundle automates database column documentation by syncing PHP Doctrine annotations with SQL comments. For example, a developer’s @ORM\Column() docblock like '@Comment This tracks user payment status' will auto-generate a SQL comment—eliminating manual documentation gaps. This reduces compliance risks, speeds up developer onboarding, and cuts time spent debugging undocumented schemas. The cost? A one-time schema:update and minimal maintenance. ROI? Fewer audits, happier devs, and less technical debt."
*"Need a way to keep your database schema documented without manual upkeep? This bundle lets you define column descriptions in your entity classes (via docblocks), then auto-applies them to the database via Doctrine. Key benefits:
doctrine:schema:update (or automate it in CI).
Tradeoff: Requires Symfony/Doctrine, and updates need SQL migration. Worth it if you’re tired of out-of-sync docs."**"Tired of guessing what is_active or created_at means in production? This bundle lets you add human-readable comments to your database columns—directly in your entity code. How?
@ORM\Column():
/** @ORM\Column() Comment: Marks if user account is verified */
private bool $isVerified;
doctrine:schema:update --dump-sql to see the SQL comment generated.DESCRIBE table, and even SHOW CREATE TABLE now show the comment.
Bonus: Works with migrations too—just update your entities and re-run the bundle."*How can I help you explore Laravel packages today?