public static function extraAfterSave($object) { //Check the scenairo if tags updated needed if ($object->isNewRecord || ($object->scenario = 'updateWithTags')) { self::UpdateTagRelationship($object); } return; }