The second parameter of unbindModel is whether the unbinding is only for the next query, which is the default. In the paginate() it first does a findCount() before the findAll(), and after this first query your unbinding will be reset.
Change it to $this->Model->unbindModel( array(...), false ); and the unbinding will not be reset after the first query. On Sep 21, 8:46 am, MikeK <[EMAIL PROTECTED]> wrote: > I am trying to unbind a model temporarily and all is fine if my search > is done with find or findAll -- however I want to use paginate, and > paginate seems to ignore my unbind request. I peeked at the code and > paginate uses findAll -- is the recursion doing it? What's my issue > here? > > Thanks in advance and I apologize if this has been addressed. I have > read the unbind threads here and in the Bakery. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
