Changing state when adding relation
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 |
From: Jeremi <jere...@gmail.com>
Date: Wed, 8 Jul 2009 12:30:52 -0700 (PDT)
Local: Wed 8 July 2009 20:30
Subject: Changing state when adding relation
If I have a model loaded from database, $a, and I add another model to
a hasMany relation, $a->Relation[] = $b, should $a->state() be dirty?
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Jeremi <jere...@gmail.com>
Date: Wed, 8 Jul 2009 12:45:11 -0700 (PDT)
Local: Wed 8 July 2009 20:45
Subject: Re: Changing state when adding relation
Well maybe that doesn't matter in the issues that I'm having.
I have:
$a->b->c->d->Items[] = $e;
$a->save();
is not saving the new items and assigned them to $d;
On Jul 8, 3:30 pm, Jeremi <jere...@gmail.com> wrote:
> If I have a model loaded from database, $a, and I add another model to
> a hasMany relation, $a->Relation[] = $b, should $a->state() be dirty?
You must Sign in before you can post messages.
You do not have the permission required to post.
|
|
|