DDC-2477: [GH-681] Sequence generator fix #3107

Closed
opened 2026-01-22 14:12:21 +01:00 by admin · 6 comments
Owner

Originally created by @doctrinebot on GitHub (May 29, 2013).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of lighthart:

Url: https://github.com/doctrine/doctrine2/pull/681

Message:

$this->_sequenceName=$em->getClassMetadata(get_class($entity))->sequenceGeneratorDefinition['sequenceName'];

The sequence generator does not read the class metadata, so if there is table remapping via event listeners, any new entity won't have the appropriate changes in table names.

This pull request adds a remap the Sequence Generator to read the class metadata to determine the sequence name if there is an entity passed to the generate function.

Tests: 1854, Assertions: 6224, Skipped: 96.

Originally created by @doctrinebot on GitHub (May 29, 2013). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of lighthart: Url: https://github.com/doctrine/doctrine2/pull/681 Message: $this->_sequenceName=$em->getClassMetadata(get_class($entity))->sequenceGeneratorDefinition['sequenceName']; The sequence generator does not read the class metadata, so if there is table remapping via event listeners, any new entity won't have the appropriate changes in table names. This pull request adds a remap the Sequence Generator to read the class metadata to determine the sequence name if there is an entity passed to the generate function. Tests: 1854, Assertions: 6224, Skipped: 96.
admin added the Bug label 2026-01-22 14:12:21 +01:00
admin closed this issue 2026-01-22 14:12:23 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 29, 2013):

@doctrinebot commented on GitHub (May 29, 2013): - depends on [DDC-3489: Sequence generators should be stateless](http://www.doctrine-project.org/jira/browse/DDC-3489)
Author
Owner

@doctrinebot commented on GitHub (Oct 16, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-681] was assigned:
https://github.com/doctrine/dbal/pull/681

@doctrinebot commented on GitHub (Oct 16, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-681] was assigned: https://github.com/doctrine/dbal/pull/681
Author
Owner

@doctrinebot commented on GitHub (Oct 16, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-681] was closed:
https://github.com/doctrine/dbal/pull/681

@doctrinebot commented on GitHub (Oct 16, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-681] was closed: https://github.com/doctrine/dbal/pull/681
Author
Owner

@doctrinebot commented on GitHub (Jan 13, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-681] was closed:
https://github.com/doctrine/doctrine2/pull/681

@doctrinebot commented on GitHub (Jan 13, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-681] was closed: https://github.com/doctrine/doctrine2/pull/681
Author
Owner

@doctrinebot commented on GitHub (Jan 13, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-681] was assigned:
https://github.com/doctrine/doctrine2/pull/681

@doctrinebot commented on GitHub (Jan 13, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-681] was assigned: https://github.com/doctrine/doctrine2/pull/681
Author
Owner

@doctrinebot commented on GitHub (Jan 13, 2015):

Issue was closed with resolution "Incomplete"

@doctrinebot commented on GitHub (Jan 13, 2015): Issue was closed with resolution "Incomplete"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3107