use kdyby\doctrine 2.0 and above