[eluser]nottRobin[/eluser]
I've looked through the manual and played around a lot and searched on Google for about an hour but I can't find an answer to this question:
I have two models:
Code:
class model_energy_saving_bulb extends DataMapper {
var $table = 'energy_saving_bulb';
var $has_many = array(
'non_energy_saving_bulb' => array('class' => 'model_non_energy_saving_bulb', 'other_field' => 'energy_saving_bulb'),
);
}
and
Code:
class Model_non_energy_saving_bulb extends DataMapper {
var $table = 'non_energy_saving_bulb';
var $has_many = array(
'energy_saving_bulb' => array('class' => 'model_energy_saving_bulb', 'other_field' => 'non_energy_saving_bulb')
);
}
The problem is that the joining table therefore has to be called