Oh... I have a fix for that in my local repo. If the relation is 1:1 and it 
already has a record then I don't show the "add empty" form. So the user can 
then only edit that record or delete it.

But I smell a bug there... oh, nevermind my previous sentence above. I think 
that's really a bug because it doesn't deal with that just now.

I'm also considering other, more automatic alternatives to the 
"considerNewFormEmptyFields" option.

I can post my results to a separate branch and I also just moved to GitHub... 
so if someone wants to help, just fork it here: 
http://github.com/annismckenzie/ahDoctrineEasyEmbeddedRelationsPlugin


Cheers, Daniel


On 16.02.2010, at 16:24, Stéphane wrote:

> Hi, sorry if not explicit enough :)
> 
> I used your plugin to embedRelations of type 1:1.
> When newing an object, I fill the form except one 1:1 field and press save.
> Here, sf/doctrine will automatically create the object even if I specifiy 
> correctly the "considerNewFormEmptyFields" value.
> 
> This is not a major problem as it is a doctrine inherited "feature" ;-)
> 
> Cheers,
> 
> 
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
> 
> 
> On Tue, Feb 16, 2010 at 4:16 PM, Daniel Lohse <[email protected]> 
> wrote:
> Hey Stéphane,
> 
> did I miss something? I'm not following. :)
> 
> Can you elaborate more about your last post?
> 
> Thanks!
> 
> 
> Daniel
> 
> On 16.02.2010, at 13:52, Stéphane wrote:
> 
>> Hi,
>> 
>> Another good thing would be it to avoid the creation of 1:1 related object, 
>> as Doctrine automatically creates an item when requested. I think we should 
>> make this an option (and correct the "hasReference" which always returns 
>> true).
>> 
>> Cheers,
>> 
>> Before Printing, Think about Your Environmental Responsibility!
>> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>> 
>> 
>> On Tue, Feb 16, 2010 at 1:40 PM, Daniel Lohse <[email protected]> 
>> wrote:
>> Hey there,
>> 
>> I'm the plugin developer.
>> 
>> There are few things that need work and I was much too fast to pull the 
>> trigger on the 'stable' designation. Won't happen again.
>> 
>> To get to the point: may I see your schema.yml? And if you had a few 
>> fixtures for me to work with, I'd take a closer look.
>> 
>> On another note: I have a more advanced and bugfixed version here but it's 
>> not ready yet.
>> 
>> Hang in there while I finish this up but it won't be today, sorry.
>> 
>> 
>> Cheers, Daniel
>> 
>> Sent from my iPhone
>> 
>> 
>> On Feb 16, 2010, at 1:03 PM, Mikael <[email protected]> wrote:
>> 
>> Hello,
>> 
>> I have a schema with 3 objects :
>> 
>> Obj
>> Pc
>> Eth
>> 
>> Obj has a relation with Eth (one to many)
>> Pc inherits from Obj
>> 
>> I've installed the ahDoctrineEasyEmbeddedRelationsPlugin and it works
>> well with Obj, but I can't get it working on "Pc".
>> 
>> Would it be possible ? If so, how should I do it ?
>> 
>> Thanks in advance,
>> 
>> Mikael Kermorgant
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "symfony users" 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/symfony-users?hl=en.
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "symfony users" 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/symfony-users?hl=en.
>> 
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "symfony users" 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/symfony-users?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "symfony users" 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/symfony-users?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "symfony users" 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/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en.

Reply via email to