Make hasMany work