code: public function refresh()
      {
          $query = static::find();
          $tableName = key($query->getTablesUsedInFrom());
          $pk = [];
          // disambiguate column names in case ActiveQuery adds a JOIN
          foreach ($this->getPrimaryKey(true) as $key => $value) {
              $pk[$tableName . '.' . $key] = $value;
          }
          $query->where($pk);
  
          /* @var $record BaseActiveRecord */
          $record = $query->one();
          return $this->refreshInternal($record);
      }
docs: {@inheritdoc}