Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
refreshRelated still not working with hasOne and Doctrine 1.1.5
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
  3 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
 
mbneto  
View profile   Translate to Translated (View Original)
 More options 7 Nov, 01:59
From: mbneto <mbn...@gmail.com>
Date: Fri, 6 Nov 2009 21:59:47 -0400
Local: Sat 7 Nov 2009 01:59
Subject: refreshRelated still not working with hasOne and Doctrine 1.1.5

Hi,

I have the problem where if my classes have a hasOne relationship the
refreshRelated will cause records to be created.  According to the changelog
this is issue http://trac.doctrine-project.org/changeset/6591 and it was
supposed to be corrected.

The yaml (just to illustrate)

Email:
  columns:
   user_id: integer
   address: string(150)
  relations:
   User:
    local: user_id
    foreign: id
    type: one
    foreignType: one
    foreignAlias: email

User:
  columns:
   name: string(150)

The test code (i've added both User and Email before)

$u = Doctrine_Query::create()->from('User')->fetchOne();
$u->name = 'Test 2' ;
$u->email->delete();
$u->refreshRelated('email');
$u->save();

The profiler shows and INSERT INTO email :( with NULL values.

PHP 5.2.11 / Doctrine 1.1.5-Sandbox


    Reply    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.
Jonathan Wage  
View profile   Translate to Translated (View Original)
 More options 7 Nov, 23:19
From: Jonathan Wage <jonw...@gmail.com>
Date: Sat, 7 Nov 2009 18:19:49 -0500
Local: Sat 7 Nov 2009 23:19
Subject: Re: [doctrine-user] refreshRelated still not working with hasOne and Doctrine 1.1.5

Can you create a ticket and a test case in jira to help us resolve the
issue?

http://www.doctrine-project.org/jira

Thanks, Jon

--
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

You should follow me on Twitter: http://www.twitter.com/jwage

You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related questions
at jonathan.w...@sensio.com


    Reply    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.
mbneto  
View profile   Translate to Translated (View Original)
 More options 8 Nov, 02:54
From: mbneto <mbn...@gmail.com>
Date: Sat, 7 Nov 2009 22:54:05 -0400
Local: Sun 8 Nov 2009 02:54
Subject: Re: [doctrine-user] Re: refreshRelated still not working with hasOne and Doctrine 1.1.5

Jon,

I've opened with the requested info.  Thanks for the help and let me know if
there is an interim version that solves this.

*DC-198 <http://www.doctrine-project.org/jira/browse/DC-198>*


    Reply    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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google