[PR #603] [CLOSED] Add a filter to the import and convert mapping #8437

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/603
Author: @nicolasThal
Created: 3/6/2013
Status: Closed

Base: masterHead: patch-import-and-convert-filter


📝 Commits (2)

  • b39f54f Add a filter to the import and convert mapping
  • 1d10353 Code style modification after @stof comments

📊 Changes

2 files changed (+30 additions, -4 deletions)

View changed files

📝 lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php (+29 -2)
📝 lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php (+1 -2)

📄 Description

Hi,

I needed to import the mapping of an existing database in order to create doctrine2 entities, but when you run the command, it throw an exception on every table without a primary key.

I tried to use the filter option, but the error still occurs because the exception was throw in the method which get all the metadata informations.

I added a method which get the metadata of some tables according to a filter.

What are your thought bout my issue?


🔄 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/603 **Author:** [@nicolasThal](https://github.com/nicolasThal) **Created:** 3/6/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-import-and-convert-filter` --- ### 📝 Commits (2) - [`b39f54f`](https://github.com/doctrine/orm/commit/b39f54f91f17065301f14fb62248238506d64b02) Add a filter to the import and convert mapping - [`1d10353`](https://github.com/doctrine/orm/commit/1d10353da684738635d10c85a2954a269775e2a9) Code style modification after @stof comments ### 📊 Changes **2 files changed** (+30 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php` (+29 -2) 📝 `lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php` (+1 -2) </details> ### 📄 Description Hi, I needed to import the mapping of an existing database in order to create doctrine2 entities, but when you run the command, it throw an exception on every table without a primary key. I tried to use the filter option, but the error still occurs because the exception was throw in the method which get all the metadata informations. I added a method which get the metadata of some tables according to a filter. What are your thought bout my issue? --- <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:59:55 +01:00
admin closed this issue 2026-01-22 15:59:56 +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#8437