Skip to content

Loading…

DDC-1008: Entity Generator Stub Method For Id Generator #1593

Closed
doctrinebot opened this Issue · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user sw45859:

In the EntityGenerator when the id setting has a generator of NONE it does not add the stub method for setting the id keys value, here's my fix:

around line 478 in the _generateEntityStubMethods function, the first foreach which checks for the id mapping, change:

        if ( ! isset($fieldMapping['id']) ](| ! $fieldMapping['id')) {

TO

        if ( ! isset($fieldMapping['id']) ](| ! $fieldMapping['id') || ($this->_getIdGeneratorTypeString($metadata->generatorType) == 'NONE')) {
@doctrinebot

Comment created by @beberlei:

Fixed

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0.2 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.