Fixed hasManyRelations property on models