Example controller base of doctrine