Skip to content


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

doctrinebot opened this Issue · 2 comments

2 participants


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')) {


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

Comment created by @beberlei:



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.