Fix ODM Primary key

Duplicate fix from commit #ffe2e9149fa0cb6e32b1065482767acf9d5a3b1 Preis24/AdmingeneratorGeneratorBundle