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

Re: mysql join query gives too much results, twice.

2013-10-15 Thread Reuben
Hi The primary Model you are working with is Categorie, so you don't need to join against the categories table again. This will get you closer. $this->set('categorienAdded', $this->Categorie->find('all',array('joins' => array( array( 'table' => 'cat_connects', 'alias' => 'c

paginator helper - link in tag

2013-10-15 Thread Bernardo Berg
how to apply a class to the link contained in the wrapping tag? previously mentioned at https://groups.google.com/d/topic/cake-php/IulU5bF-nzQ/discussion using cakephp 2.0 thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You recei

mysql join query gives too much results, twice.

2013-10-15 Thread UltraMarkus
Hi, As im new to this group, i first want to apologize for my bad english. Just starded to use cakePHP 2 weeks ago, and i must say, great work!!! I managed to get my things to be done and Im gratefull for excistence of it. But hey, now im stuck with my query, and believe me, i searched a lot.

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

Re: Where to place this logic?

2013-10-15 Thread Reuben
I can't say what is best practice, but here are things that I've done in the past. Putting in a component: For a little bit, I was shoving things that did not need to be directly in the Model, into a component. This is great, as long as you only need to access that logic from a Controller. Ho

Re: Issues have moved to Github

2013-10-15 Thread Reuben
Where might one submit an issue about installing via Composer for CakePHP 2.4.1? I couldn't see a repository responsible for the Vendor/bin/cake.bat file imported or generated when performing a CakePHP install via Composer. Regards Reuben Helms On Saturday, 12 October 2013 12:41:57 UTC+10, mar