Use Doctrin in the getUrl methods.