[PR #891] [MERGED] Allow to not generate extra use #8857

Closed
opened 2026-01-22 16:02:01 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/891
Author: @spolischook
Created: 12/30/2013
Status: Merged
Merged: 12/30/2013
Merged by: @beberlei

Base: masterHead: patch-2


📝 Commits (1)

  • 07f67c5 Allow to not generate extra use

📊 Changes

1 file changed (+12 additions, -3 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/EntityGenerator.php (+12 -3)

📄 Description

For case when we not generate annotation (by default at doctrine orm:generate-entities) allow to not generate extra use for it -

use Doctrine\ORM\Mapping as ORM;

For example if generate entities for my project that use only dbal in pord but use orm for generate entities in dev mode.


🔄 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/891 **Author:** [@spolischook](https://github.com/spolischook) **Created:** 12/30/2013 **Status:** ✅ Merged **Merged:** 12/30/2013 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`07f67c5`](https://github.com/doctrine/orm/commit/07f67c5d1a18b1a167dd898fdd8491c7a871e755) Allow to not generate extra use ### 📊 Changes **1 file changed** (+12 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/EntityGenerator.php` (+12 -3) </details> ### 📄 Description For case when we not generate annotation (by default at doctrine orm:generate-entities) allow to not generate extra use for it - ``` php use Doctrine\ORM\Mapping as ORM; ``` For example if generate entities for my project that use only dbal in pord but use orm for generate entities in dev mode. --- <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 16:02:01 +01:00
admin closed this issue 2026-01-22 16:02:01 +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#8857