Extend actionSave()

Daniel Hood

Well-known member
I'm working on an add on that requires changing a type of field, I've altered the table, I've extended the datawriter, the model, etc... My problem is the controller. I don't want to over-write the entire function obviously but I need change the type of input expected. I can't do it with the typical:

Code:
$parent = parent::actionSave();
$var = $parent->var;
.....
.....
Because parent:: does stuff (some of which I need to modify) before returning. Any ideas?
 
I would try to do it within the preSave as KenSmith has suggested. Running queries in your datawriter that don't relate to the data you are modifying is general bad practice.
 
Top Bottom