Hi Suthern,
You also must tell Multipliers that it belongs to Manufacturer
in app/models/multiplier.php
$belongs_to = array('manufacturer');
Then in the manufacturer controller you must set tell the controller to use the multiplier model:
var $models = 'manufacturer,multiplier';
Then, for each manufacturer, you should do a search like this.
$this->multipliers =& $this->Multiplier->find('all',array(
'conditions' => array('_manufacturer.id = '.$this->params['id']),
'include' => array('manufacturer')));
$this->params['id'] it's the manufacturer id passed by url parameter, for example.
You could walk $this->multiplier with foreach in your view to get 'em.
Don't know if this is what you want, but hope it helps as example.
Regards.
Hehe, tvw. Guessed that was a too much easy solution and you probably already knew it after reading some of your threads in this forum ;). But well, although I'm still very noob with akelos, the less I can do is try to help a bit :)
In the other way, I think your last message has given me an idea to solve a problem I'm having with models not directly associated.
So, thanks to you too!
after
$this->manufacturer->multiplier->load()
$this->manufacturer->multipliers
will hold hopefully an array of your records.
pretty self-explanatory, heh?
1 to 6 of 6