I've opened with the requested info. Thanks for the help and let me know if
there is an interim version that solves this.
On Sat, Nov 7, 2009 at 7:19 PM, Jonathan Wage <jonw
...@gmail.com> wrote:
> 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
> On Fri, Nov 6, 2009 at 8:59 PM, mbneto <mbn...@gmail.com> wrote:
>> 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
> --
> 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