Titanium JIRA Archive
Alloy (ALOY)

[ALOY-674] multiple columns for an idAttribute

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionWon't Fix
Resolution Date2014-01-17T17:57:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
LabelsAlloy
ReporterCarter Lathrop
AssigneeTony Lukasavage
Created2013-05-28T16:44:54.000+0000
Updated2014-02-28T23:57:13.000+0000

Description

Hi, as I know, I can't use multiple columns for an idAttribute this is useful for middel table on ManyToMany tables like below: User Table: - id ( Integer ) - username ( Text ) Group Table: - id ( Integer ) - name ( Text ) Middle Table: user_id ( Integer ) group_id ( Integer ) I want to use middle table for fetching user 1 I use idAttribute: "user_id, group_id" but it's not working

Comments

  1. Tony Lukasavage 2014-01-17

    As most of the back-end storage methods don't support multiple primary keys, it doesn't make sense to implement in the core of Alloy. If a particular sync adapter implementation wants to, they can, but not in the core of alloy's code.

JSON Source