Friday, July 31, 2009

Paging on associative fields

Hi all.

I'm having problems with sort function. I have two models Task and Employee,
they are related by Employee.nickname.

Sort function works well on main model's fields, but it doesn't work with
its associated field. I've also tried $paginator->sort('Employee',
'Employee.nickname')

Is there anyone who have solved a similar problem?

Best regards.
--
View this message in context: http://www.nabble.com/Paging-on-associative-fields-tp24759009p24759009.html
Sent from the CakePHP mailing list archive at Nabble.com.


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