Added initial support for hasMany