Afaik there are no such mehods

Just add a method 
  
 int_id() -> 
       [_, IId] = string:tokens(Id, "-"), 
       list_to_integer(IId).

or something like this to your models.

вторник, 30 декабря 2014 г., 0:51:38 UTC+3 пользователь aloharich написал:
>
> Using a model with BossDB, the "id" appears to prepend the table name,
>
> So   Model:id()  returns "model-1" for example.
>
> Some of our relationships can't be modeled completely with the ORM, so 
> additional raw queries are needed using the actual ID (ie 1, not model-1).
>
> Are there any methods or ways to configure the model to provide access to 
> the raw id (versus having to hack the :id() result to parse it).
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/d933fe7a-b26d-4dbc-9aa2-d5a4732e0d4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to