使用typeorm创建多对多关联,进行更新从表数据时出错
相关代码
blog.entity
import { Entity , Column ,PrimaryGeneratedColumn,CreateDateColumn, UpdateDateColumn, JoinColumn, ManyToOne, ManyToMany, JoinTable, } from "typeorm";
import { ApiProperty } from "@nestjs/swagger";
import { UserEntity } from "./../user/user.entity";
import {TagsEntity} from './../tag/tag.entity'
@Entity({name:'tyk_blog'})
export class BlogEntity {
@ApiProperty({description:'主键'})
@PrimaryGeneratedColumn({name:'blog_id'})
blogId:number
@ApiProperty({description:'标题'})
@Column()
title:string
@ApiProperty({description:'存储内容'})
@Column({type:'text'})
content:string
@ApiProperty({description:'页面展示内容'})
@C