Added editHasOne and updateHasOne methods