On Apr 17, 5:35 am, mike  jones <[email protected]>
wrote:
> I dont seem to be able to do this because whenever I add something to
> the dataset every method ends up calling the "add_associated_object"
> which requires the parent to have a pk...

In order for foo.add_bar(bar) to work, foo needs to already have a
primary key.  That's just how Sequel works.  There was an earlier
message thread pretty much the same issue.  I know that person was
working on a delayed associations framework that would allow you use
foo.add_bar(bar) without a pk and have the database activity delayed
until foo was saved.  You'll have to search the group for that.

Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to