Skip to content

Commit

Permalink
Fix: AdventureItemLog 코드 식별 관계에 대해 프로퍼티 분리
Browse files Browse the repository at this point in the history
참고 : typeorm/typeorm#8616
> "primary relation (e.g. @manytoone(() => User, { primary: true }) user: User) support is removed. ..."
  • Loading branch information
DD-DoubleDeltas committed Mar 8, 2024
1 parent 64fbfd5 commit 258306f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/db/typeorm-utils.ts
Expand Up @@ -46,6 +46,8 @@ export const IsDeleted = (comment?: string) => Column({type: 'boolean', default:
*
* 내부적으로, 코드 테이블과 단방향 참조의 1:N 관계를 매핑합니다. 이 데코레이터가 적용된 컬럼이 연관 관계의 주인(owner)이 됩니다.
*
* NOTE: 만약 컬럼이 코드 테이블에 대해 FK이면서 식별 관계인 경우, 컬럼을 분리하고 `@Id`와 @ManyToOne`을 사용하세요.
*
* @param type 참조할 코드 테이블의 엔티티 클래스
* @param name 테이블 상에서의 컬럼 이름. 생략하면 참조 테이블의 ID 컬럼명이 snake_case로 변환되어 적용됩니다.
* @param nullable 해당 컬럼의 Nullable 여부, 기본 false.
Expand Down

0 comments on commit 258306f

Please sign in to comment.