[Nitro] The has_one/belongs_to relationship
Matthew B Gardner
weather at speakeasy.net
Mon Aug 20 09:23:32 EDT 2007
> Thanks so much for the help -- I do have one more question, when you get
> the time. I have a Node class that has_many comments (which belong_to a
> Node) -- when I load the Node table, it loads the nodes and loads and
> attaches the comments (which I still find really cool, btw) -- that's all
> that's happening there, correct? What I mean is, the comments aren't also
> loading their respective Nodes, as the Character was loading its Account,
> are they? Just wanted to double check that I don't have a bunch of extra
> Node instances running around.
Just ran a test and it looks like they are running around (or maybe they're
running around b/c the test included referencing comment->node). At any rate,
it looks like relationships may not be a great idea for my project.
More information about the Nitro-general