Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Changing state when adding relation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Jeremi  
View profile   Translate to Translated (View Original)
 More options 8 July, 20:30
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?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremi  
View profile   Translate to Translated (View Original)
 More options 8 July, 20:45
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google