Hi!

the following code works in cake-1.2.0.5875

   $this->Modelname->findAllThreaded(null,null, '`order` ASC');

but in cake-1.2.0.6311-beta the children are missing in the threaded
array (children is empty).

I did a little further investigation on this: I compared cake/libs/
model.php in both mentioned versions and I found out that the problem
is the model variable 'alias':

If i set

   var $alias = 'Modelname';

in the model class then everything works fine.
If I don't state this explicitly Modelname->alias is an empty array
(which can't be an array key, as like it is used in __doThread in
version cake-1.2.0.6311-beta).

I hope this is useful for debugging...

Best Regards,
Florian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to