Made parent generation work when .hasMany or .hasOne is also specified