for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* _ __ __ _____ _____ ___ ____ _____
* | | / // // ___//_ _// || __||_ _|
* | |/ // /(__ ) / / / /| || | | |
* |___//_//____/ /_/ /_/ |_||_| |_|
* @link https://vistart.name/
* @copyright Copyright (c) 2016 vistart
* @license https://vistart.name/license/
*/
namespace vistart\Models\models;
use vistart\Models\traits\BlameableTrait;
* Description of BaseRedisBlameableModel
*
* @author vistart <[email protected]>
class BaseRedisBlameableModel extends BaseRedisEntityModel
{
use BlameableTrait;
* Initialize the blameable model.
* If query class is not specified, [[BaseBlameableQuery]] will be taken.
public function init()
if (!is_string($this->queryClass)) {
$this->queryClass = \vistart\Models\queries\BaseRedisBlameableQuery::className();
}
if ($this->skipInit) {
return;
$this->initBlameableEvents();
parent::init();
* Get the query class with specified identity.
* @param \vistart\Models\models\BaseUserModel $identity
* @return \vistart\Models\queries\BaseBlameableQuery
public static function findByIdentity($identity = null)
return static::find()->byIdentity($identity);