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

Closed
doctrinebot opened this Issue Jan 31, 2011 · 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 Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0.2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment