Actually, I have many-to-many relationship between memebr and membership through membershipGroup. I implemented using member to membershipGroup one-to-many and membership to membershipGroup one-to-many. it works ok.
What I need is to create a relationship between member and membershipGroup so that from member I can retrieve only one row from membershipGroup with the latest addedDate without retrieving all related rows from membershipGroup.
You are right, I was thinking that I can get both HAS_MANY and HAS_ONE from member to membership. Rereading docs from the link you give, I found out that I can get it from two HAS_MANY for memberships and latestMembership relations with giving latestMembership relation a ‘limit’ = 1, of course both is sorted by ‘addedDate DESC’.