mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #890] [MERGED] [DBAL-563] Add general IDENTITY generator type support for sequence emulating platforms #8854
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/890
Author: @deeky666
Created: 12/29/2013
Status: ✅ Merged
Merged: 12/31/2013
Merged by: @guilhermeblanco
Base:
master← Head:DBAL-563📝 Commits (1)
337857dadd general IDENTITY generator type support for sequence emulating platforms📊 Changes
3 files changed (+97 additions, -62 deletions)
View changed files
📝
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(+11 -9)➖
tests/Doctrine/Tests/ORM/Functional/PostgreSQLIdentityStrategyTest.php(+0 -53)➕
tests/Doctrine/Tests/ORM/Functional/SequenceEmulatedIdentityStrategyTest.php(+86 -0)📄 Description
This is a follow-up PR for https://github.com/doctrine/dbal/pull/428 as discussed in DBAL-563 which adds IDENTITY generator type support for platforms that do not natively support identity columns but can emulate them via sequences.
This replaces the current workaround for PostgreSQL
SERIALcolumns in favour of a more general approach. With this patch now IDENTITY generator can also be used with Oracle which did not work before. Future platforms can also make use of this approach if necessary.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.