#DDC-1590: Fix Inheritance in Code-Generation

http://www.doctrine-project.org/jira/browse/DDC-1590
Same as above: remove methods/properties that are not needed