functional manytomany relationship