Re: Find and HABTM

2013-10-15 Thread Reuben
My first guess is because the necessary fields required by the contains statement to do the join are not included when specifying the contains clause for Disciplina and DisciplinasEvento. i.e. the query cant get DisciplinasEvento if Disciplina.id is not retrieved. The query can't get Modalidad

Find and HABTM

2013-10-15 Thread Fabian Olmos
Hi, now I'm trying to retrieve data using find function like this $this->Evento->Behaviors->load('Containable'); $this->Evento->recursive = -1; debug($this->Evento->find('all', array('conditions' => array('Evento.id'=>$this->Convert->decode($evento_id)), 'contain' =>array( 'Caracteristica'=>array