one to many and many to many both working