enable auto generate environment.xml when relation changed