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