app/Conditions/QueryFields/UserCreatorField.php
<?php
namespace App\Conditions\QueryFields;
/**
* UserCreator Query Field Class.
*
* @package UIType
*
* @copyright YetiForce S.A.
* @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
* @author Tomasz Kur <t.kur@yetiforce.com>
* @author Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
*/
class UserCreatorField extends OwnerField
{
/**
* Not created by owner.
*
* @return array
*/
public function operatorNco()
{
return ['<>', $this->getColumnName(), new \yii\db\Expression($this->getTableName() . '.smownerid')];
}
}