Araquach Posted April 19, 2013 Share Posted April 19, 2013 I've extended the CActiveRecord class with a beforeSave() function to set the current logged in users ID upon submitting a form. This works great throughout the majority of the application, but there are circumstances where the administrator selects a User from a drop down list. What's the best approach to prevent/overide the beforeSave() in this instance? Many thanks in advance. Link to comment Share on other sites More sharing options...
Larry Posted April 19, 2013 Share Posted April 19, 2013 Off the top of my head, you'd either add logic to the beforeSave() to exclude the conditions or you'd override beforeSave() in the model where that shouldn't be done. Link to comment Share on other sites More sharing options...
Recommended Posts