Add kdyby\doctrine support