Well I'm trying to select all entities where entitie_id = *some id*
I do this with this rule:
List<NodeSugar> nodesugars = NodeSugar.find(NodeSugar.class, "entitie_id = ? ", String.valueOf(nodeid));
I know I should get some results back and I get an error. this error:
E/SQLiteLog﹕ (1) no such column: entitie_id
I know the column exists because I can set it in a different part of code.
Where am I going wrong?
You should be able to query with "entitieid".
Sugar ORM does some conversion when it creates the columns in the tables. Here is a basic example:
String firstName; //creates column first_name
int entitie_id; //creates column entitieid
The documentation only specifies the conversion from camel case to underscore separation. I had to figure the other one out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With