hello ,
what can be wrong in the folowing code :
code in table1 controller :
public function updateManyMany() {
if ($this->isNewRecord) {
//..create records on table1_2 ...
} else {
//..update records on table1_2 ...
}
return true;
}
public function afterSave() {
$this->updateManyMany();
return parent::afterSave();
}
I try to overide the afterSave() on my table1 controller with a function -updateMany()- that is declared just "above" it and I get the error that this function is not part of the controller :-/
I don’t see what’s going on …
if someone has a clue ?
thanks
Rico