Added addHasMany control