Monday, October 25, 2010

Re: Build Query

Do you have a field named 'location' or is it 'name'? If it's name, you'd need to do findAllByName.

Jeremy Burns
Class Outfit

jeremyburns@classoutfit.com
http://www.classoutfit.com

On 25 Oct 2010, at 13:30, Briko03 wrote:

> Any idea why this wouldn't be returning results with a location=
> sundown??
>
>
>
> function sundown()
> {
> $this->set('results',$this->Result->findAllBylocation('Sundown'));
> $this->set('results', $this->paginate('Result'));
> }
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
>
> 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

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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: