public function getFileInfo() { return $this->hasOne(FileInfo::className(), ['id' => ['files_info_id']]); }
public function getFileInfos() { return $this->hasMany(FileInfo::className(), ['file_formats_id' => 'id']); }