models/BaseMongoNotificationModel.php
<?php
/**
* _ __ __ _____ _____ ___ ____ _____
* | | / // // ___//_ _// || __||_ _|
* | |/ // /(__ ) / / / /| || | | |
* |___//_//____/ /_/ /_/ |_||_| |_|
* @link https://vistart.name/
* @copyright Copyright (c) 2016 vistart
* @license https://vistart.name/license/
*/
namespace vistart\Models\models;
use vistart\Models\traits\NotificationTrait;
/**
* Description of BaseMongoNotificationModel
*
* @author vistart <i@vistart.name>
*/
abstract class BaseMongoNotificationModel extends BaseMongoBlameableModel
{
use NotificationTrait;
public $expiredAt = 604800;
public $guidAttribute = 'guid';
public $updatedAtAttribute = false;
public $updatedByAttribute = false;
public function init()
{
$this->on(static::EVENT_AFTER_DELETE, [$this, 'onDeleteNotificationRead']);
parent::init();
}
}