work on 'has' clause on 'hasMany' relationships with self relation