On Feb 18, 2:03 pm, Martin Gamsjaeger <[email protected]> wrote:
> [...]
> What queries are looking for a model_id attribute?
Okay -- more information on this. I'm getting this error:
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.9.10/lib/dm-core/adapters/
data_objects_adapter.rb:66:in `execute_reader': ERROR: column
"model_id" does not exist (PostgresError)
Query: SELECT "id", "document_id", "number", "part", "value", "extn",
"rank", "model_id" FROM "pages" WHERE ("id" = 'NSW-1833-census-01_5')
AND ("rank" IS NULL) ORDER BY "id", "rank" LIMIT 1
But with the problem that the table "pages" has no "model_id"
attribute, but the Page resource class
does inherit from one called "Model". A complicating factor might
be that Model and Page are both
defined in nested Ruby modules:
module HCCDA
module DB
class Model...
I suspect this is something I've misunderstood about DM though.
Thanks,
Stu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---