add doctrine querybuilder hook references