Friday, October 2, 2009

Re: paginator, containable -> what $key for sort()

Hello Brian,

> $paginator->sort('text in link', 'D.cell name', array('title' =>
> 'title attribute of link'))

this works - but only for models which are directly related to the
actual model. Cakephp does not recognize Models which belong to a
Model that belongs to the actual model (A belongsTo C, C belongsTo D,
D belongsTo E => E and D work, A and C do not).

Putting A and C into var $uses=array() does not help.

I thought I would circumvent this problem by using containable, but
know I am confronted with the nested relationship at a different
point ...

any suggestions?

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

No comments: