I insert my yml data via batch and the problem was that i don´t reload() the 
parent after insert a child so the parent has old left and right values and the 
next child get not correct left right values ;(

 

See test/unit/PropelActAsNestedSetBehaviorTest.php ;)

 

Yes it works very fine ;)

 

The only problem is the criteria() option see tickets but i would make a patch 
for that in the next time ;)

 

Greetings

Gordon

 

Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von 
Oriol Mercadé
Gesendet: Dienstag, 8. Mai 2007 17:50
An: [email protected]
Betreff: [symfony-users] Re: AW: [symfony-users] 
sfPropelActAsNestedSetBehaviorPlugin

 

what do you mean with reload?
the pluggin is working fine then? i was afraid :)

regards

On 5/8/07, Franke Gordon < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:


Sorry i have forgott to reload() the entry. 

Greetings
Gordon

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected] ] Im 
Auftrag von Franke Gordon
Gesendet: Dienstag, 8. Mai 2007 14:58
An: [email protected]
Betreff: [symfony-users] sfPropelActAsNestedSetBehaviorPlugin 


Hello,

i insert a tree with 5 levels i use:
makeRoot()
insertAsFirstChildOf()
insertAsNextSiblingOf()

if i use only the getPath and getChildren methods it works fine but when i use 
getDescendants it doesn´t work. 

I see in the database that there are values:
Id      left    right parent
52      1563    32      23
50      1625    614     15
49      1623    708     15
48      1619    484     15
47      1617    916     15 

So left > right ;(


greetings
Gordon









-- 
        - Oriol Mercadé Figueras



--~--~---------~--~----~------------~-------~--~----~
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