adding doctrine extension functionality