Re: maybe a bug in findAllThreaded() in version cake-1.2.0.6311-beta
thanks! changeing the line works! On 18 Jan., 10:50, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 18, 10:39 am, Chaso <[EMAIL PROTECTED]> wrote: > > > > > 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 > > https://trac.cakephp.org/wiki/bugreport > > see bug #3810 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: maybe a bug in findAllThreaded() in version cake-1.2.0.6311-beta
On Jan 18, 10:39 am, Chaso <[EMAIL PROTECTED]> wrote: > 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 https://trac.cakephp.org/wiki/bugreport see bug #3810 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
maybe a bug in findAllThreaded() in version cake-1.2.0.6311-beta
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 -~--~~~~--~~--~--~---