Skip to content

Looking to track changes if an event is published. #790

Answered by angeljqv
chrisgrim asked this question in Q&A
Discussion options

You must be logged in to vote

I do this

if ($myModel->status != 'p' ) { //not published
     MyModelClass::disableAuditing();
}

$myModel->save();
MyModelClass::enableAuditing();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by parallels999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #603 on March 13, 2023 20:42.