Add containable behavior (http://book.cakephp.org/view/474/
Containable)
then:
$this-Fest-find('first',
array(
'conditions' = array(
'Fest.id' = $id,
),
'contain' = array(
'Linup' = array(
'order' = array('Lineup),
//other stuff
),
//'Category'
Great, you saved me a lot of time! And to answer your question, well i
just missed it, yes, it's more logical to name that field category_id
On 11 фев, 19:41, jodator joda...@gmail.com wrote:
Add containable behavior (http://book.cakephp.org/view/474/
Containable)
then: