Re: Should I be using a custom query?

2008-08-22 Thread RichardAtHome
$contacts = $this-Contact-find('first', array( 'conditions' = array('Contact.jobType' = 'main) ) ); Note the 'first' parameter. On Aug 22, 12:40 am, eagle [EMAIL PROTECTED] wrote:

Re: Should I be using a custom query?

2008-08-22 Thread eagle
Thanks Richard, I had tried that already, and it works fine when viewing contacts but not for retrieving just the 'main' contact when viewing the venues. The venue page is not reading the conditions set in the contacts_controller. It is basically a SELECT * FROM contacts not a SELECT * FROM

Should I be using a custom query?

2008-08-21 Thread eagle
Hi, First of I'm new to Cake and tryign it out for the first time - I've searched here and on Google to solve what I suspect will be an idiotically simple question Two tables: VENUES hasmany CONTACTS all linked in the models correctly On my default view of the venues table I want to filter