[PR #25] [CLOSED] Ddc 970 #7607

Open
opened 2026-01-22 15:55:59 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/25
Author: @ccapndave
Created: 1/6/2011
Status: Closed

Base: masterHead: DDC-970


📝 Commits (1)

  • e603ce0 DDC-970 - added --attribute-visibility command line option to orm:generate-entities

📊 Changes

2 files changed (+25 additions, -2 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php (+8 -0)
📝 lib/Doctrine/ORM/Tools/EntityGenerator.php (+17 -2)

📄 Description

orm:generate-entities should have an option to change the visibility of the attributes

The option is used like this:

doctrine orm:generate-entities --attribute-visibility=protected my_dir
doctrine orm:generate-entities --attribute-visibility=public my_dir

When the option is omitted attributes have private visibility as normal.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/25 **Author:** [@ccapndave](https://github.com/ccapndave) **Created:** 1/6/2011 **Status:** ❌ Closed **Base:** `master` ← **Head:** `DDC-970` --- ### 📝 Commits (1) - [`e603ce0`](https://github.com/doctrine/orm/commit/e603ce04fe13c0f97477c4c720e9a40fe4f285dc) DDC-970 - added --attribute-visibility command line option to orm:generate-entities ### 📊 Changes **2 files changed** (+25 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php` (+8 -0) 📝 `lib/Doctrine/ORM/Tools/EntityGenerator.php` (+17 -2) </details> ### 📄 Description orm:generate-entities should have an option to change the visibility of the attributes The option is used like this: doctrine orm:generate-entities --attribute-visibility=protected my_dir doctrine orm:generate-entities --attribute-visibility=public my_dir When the option is omitted attributes have private visibility as normal. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:55:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7607