June 2009
4 posts
1 tag
update on find('neighbours') with HABTM
And, here, to cap off a really terrible brain day, is the solution, using cake’s core functionality, to the find(‘neighours’) with habtm conundrum! $this->Mixture->bindModel(array('hasOne'=>array('MixtureCategoriesMixture')), false); $this->set('neighbours', $this->Mixture->find('neighbors', array( 'field' => 'Mixture.sku', 'value' =>...
Jun 18th
1 tag
Update on find('neighbours');
After some IRCing, it appears I’d misunderstood how the array should work to get the method working correctly. $this->set('neighbours', $this->Species->find('neighbors', array( 'field' => 'Species.latin_name', 'value' => $this->data['Species']['latin_name'],...
Jun 18th
1 tag
Replacement for find('neighbours') when dealing...
Found brain, solution realised, brainfart over, see http://blog.jben.net/post/125858269/update-on-find-neighbours-with-habtm
Jun 18th
2 tags
Long winded replacement for find('neighbours')
Brain found, solution realised, brain fart over, see http://blog.jben.net/post/125844770/update-on-find-neighbours
Jun 18th