YetiForceCompany/YetiForceCRM

View on GitHub
app/Conditions/QueryFields/UserCreatorField.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?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')];
    }
}