The fundamental issue i see with your find statement:
$markets = $this->Property->Market-
>find('all','conditions'=>array('Property.id'=>$id));
is that you are looking for 'Property.id' on the market table.
you need to change it to:
$markets = $this->Property->Market-
>find('all','conditions'=>array('Market.property_id'=>$id));
On May 19, 12:31 pm, Dave <[email protected]> wrote:
> Hello fellow bakers,
>
> I am having serious problems running find queries on related HABTM
> models.
>
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 [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