[DDC-2415] Fix CustomIdGenerator inheritance

http://www.doctrine-project.org/jira/browse/DDC-2415