You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718
  1. <?php
  2. namespace common\events;
  3. use yii\base\Event;
  4. use yii\base\Model;
  5. class EntityManagerEvent extends Event
  6. {
  7. const PRE_CREATE_EVENT = 'entity_manager_event.pre_create';
  8. const POST_CREATE_EVENT = 'entity_manager_event.post_create';
  9. const PRE_UPDATE_EVENT = 'entity_manager_event.pre_update';
  10. const POST_UPDATE_EVENT = 'entity_manager_event.post_update';
  11. const PRE_DELETE_EVENT = 'entity_manager_event.pre_delete';
  12. const POST_DELETE_EVENT = 'entity_manager_event.post_delete';
  13. public Model $model;
  14. }