TimestampBehavior::class, ], [ 'class' => PrimaryKeyValueBehavior::class, 'value' => function() { return Uuid::uuid4()->toString(); }, ], ]; } public function getAccount() : ActiveQuery { return $this->hasOne(Account::class, ['id' => 'account_id']); } public function isActual() : bool { return $this->updated_at + self::LIFETIME >= time(); } }