Friday, April 29, 2011

Re: Query with conditions in HABTM models

Only one more doubt...

Could I use the native cakephp paginator with this model function?

Thanx!

On 29 abr, 10:13, davidhc <davi...@gmail.com> wrote:
> Thank you very much, cricket!
>
> I have change your code:
> $ids = Set::extract($this->PostCategory->find('all'),
> '{n}.PostCategory.post_id');
> with:
> $ids = Set::extract($this->PostsCategory->find('all'),
> '{n}.PostsCategory.post_id');
> and it works fine :)

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: