mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1061] [CLOSED] Master Doctrine dont use custom schemas #9101
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/1061
Author: @cirovargas
Created: 6/17/2014
Status: ❌ Closed
Base:
master← Head:2.4📝 Commits (10+)
e600757Corrected PHP type for "decimal" mapping type9767a81Updated EntityGeneratorTest::testEntityTypeAliasff34aaaUpdated EntityGeneratorTest::testEntityTypeAliasb324a21Merge branch 'DDC-2587' into 2.4edaf9b6Skip not mapped public properties in SchemaValidatorae12fa6Merge branch 'DDC-2577' into 2.42438325Appending the Paginator tree walker hint, instead of removing all the other hints.5aad1dfAdded docblock.f995515Added a test which verifies that the tree walkers are kept.6a73608Fixed name colision.📊 Changes
87 files changed (+2749 additions, -387 deletions)
View changed files
📝
.travis.yml(+1 -1)📝
UPGRADE.md(+6 -0)📝
build.properties(+1 -9)📝
build.xml(+87 -100)📝
composer.json(+6 -4)📝
docs/en/index.rst(+2 -1)📝
docs/en/reference/caching.rst(+1 -1)📝
docs/en/reference/configuration.rst(+1 -1)📝
docs/en/reference/events.rst(+41 -25)📝
docs/en/reference/faq.rst(+1 -1)📝
docs/en/toc.rst(+8 -4)📝
doctrine-mapping.xsd(+1 -0)📝
lib/Doctrine/ORM/AbstractQuery.php(+13 -1)📝
lib/Doctrine/ORM/EntityManager.php(+3 -12)����
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(+27 -23)📝
lib/Doctrine/ORM/Internal/Hydration/HydrationException.php(+14 -0)📝
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(+7 -1)📝
lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php(+7 -1)📝
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(+20 -3)📝
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(+1 -4)...and 67 more files
📄 Description
When i can access a database with a user and map other user schema, example:
I connect to the server using USER1 credentials and need to use USER2 schema
Ccctually this is not suported:
Sugestions:
set a new config parameter with owner to put on front query like select * from OWNER.TABLE
and on the mapping update query mappings with these:
swap this:
FOR THIS
Worked fine for me on tests.
Tnks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.