Added doctrine extensions