[ALOY-987] Alloy : Shorthand for fetch() don't work correctly using default alloy_id
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-04-11T17:30:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.4.0, 2014 Sprint 07 |
Components | n/a |
Labels | Alloy, qe-testadded, query, sqlite |
Reporter | Reymundo López |
Assignee | Tim Poulsen |
Created | 2014-04-09T02:13:20.000+0000 |
Updated | 2014-06-22T13:21:21.000+0000 |
Description
Related to ALOY-829. When trying to get a collection using the id shorthand and in the model you don't have an idAttribute configuration set, the adapter throws an exception because the idAttribute is undefined. Also need to add the validation if id value is string, because the alloy_id values are guid's strings. myCollection.fetch({ id: "8395dda4-b998-07cb-baaf-3dd071329dc9" });
[ERROR] nativeReason = "Error Domain=com.plausiblelabs.pldatabase Code=3 \"An error occured parsing the provided SQL statement.\" UserInfo=0xcec2b20 {com.plausiblelabs.pldatabase.error.vendor.code=1, NSLocalizedDescription=An error occured parsing the provided SQL statement., com.plausiblelabs.pldatabase.error.query.string=SELECT * FROM paymentOption WHERE undefined = 8395dda4-b998-07cb-baaf-3dd071329dc9, com.plausiblelabs.pldatabase.error.vendor.string=unrecognized token: \"8395dda4\"}";
Attachments
File | Date | Size |
---|---|---|
AlloyIDTest.zip | 2014-04-10T11:54:14.000+0000 | 5915701 |