[CoreBunde] Use interface instead of entity in doctrine mappings

Fixes #719.