hunk.code_window:             if (queryRunner) await (queryRunner as QueryRunner).release()
               if (dataSource) await dataSource.destroy()
               PlatformTools.logCmdErr("Error during query execution:", err)
               process.exit(1)
           }
       }
  
hunk.labels: keep keep keep replace keep keep keep
hunk.file_path: src/commands/QueryCommand.ts
hunk.type: replace
file: import { Entity } from "../../../../src/decorator/entity/Entity"
  import { PrimaryGeneratedColumn } from "../../../../src/decorator/columns/PrimaryGeneratedColumn"
  import { Column } from "../../../../src/decorator/columns/Column"
  import { ManyToMany } from "../../../../src/decorator/relations/ManyToMany"
  import { Category } from "./Category"
  
  @Entity()
  export class Image {
      @PrimaryGeneratedColumn("uuid")
      id: string
  
      @Column()
      name: string
  
      @Column()
      isRemoved: boolean = false
  
      @ManyToMany((type) => Category, (category) => category.images)
      categories: Category[]
  
      categoryCount: number
  }
  