Added support for doctrine manager attributes, closes #707