Last active
May 19, 2021 10:04
-
-
Save ovicko/b4f8d94a63394fbe7de22d1aad24019b to your computer and use it in GitHub Desktop.
Create a constant that will identify the event in your ActiveRecord class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Records extends \yii\db\ActiveRecord | |
{ | |
//create the event name | |
const EVENT_SEND_EMAIL_UPDATE = ‘send-email-to-users’; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment