Resolve Doctrine proxies to real entity names

Resolve Doctrine proxies to real entity names in order to generate proper identifiers for model.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT