fixed bugs in doctrine entity repository, made doctrine repo default repo