MOON
Server: Apache
System: Linux u18017238.onlinehome-server.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User: emblazeone (1003)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/emblazeone/www/master-template/backend/modules/clients/models/ClientPhotoTracker.php
<?php
namespace backend\modules\clients\models;

use common\models\WbpActiveRecord;

/**
 * Owners model
 */

class ClientPhotoTracker extends WbpActiveRecord
{
    public static $imageTypes=['PhotoFront','PhotoSide','PhotoBack'];

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%clients_photo_tracker}}';
    }

    public function rules()
    {
        return [
            ['weight','safe']
        ];
    }

    public function getUser(){
        return $this->hasOne(Client::className(),['id'=>'client_id']);
    }
}