mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #603] [CLOSED] Add a filter to the import and convert mapping #8437
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/603
Author: @nicolasThal
Created: 3/6/2013
Status: ❌ Closed
Base:
master← Head:patch-import-and-convert-filter📝 Commits (2)
b39f54fAdd a filter to the import and convert mapping1d10353Code 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.