title: Referenced column undefined was not found in entity PostsEntity
body: <p>I'm trying to set a n-1 relation between 2 tables using NestJS and TypeORM, but I get this: <code>Referenced column undefined was not found in entity PostsEntity</code>. I can't get why and I don't find any post on the Internet related to this error.</p>
  
  <p>My entities:</p>
  
  <pre><code>@Entity('appreciations')
  export class AppreciationsEntity {
      @PrimaryGeneratedColumn()
      id: number;
  
      @Column()
      postId: number;
  
      @Column()
      userId: number;
  
      @Column()
      value: boolean;
  
      @ManyToOne(type =&gt; PostsEntity)
      @JoinColumn([
          { name: 'postId' },
          { name: 'userId', referencedColumnName: 'userId' }
      ])
      post: PostsEntity;
  }
  
  @Entity('posts')
  export class PostsEntity {
      @PrimaryGeneratedColumn()
      id: number;
  
      @Column()
      title: string;
  
      @Column()
      content: string;
  
      @Column()
      userId: number;
  
      @ManyToOne(type =&gt; UsersEntity, user =&gt; user.posts)
      user: UsersEntity;
  
      @OneToMany(type =&gt; AppreciationsEntity, appreciation =&gt; appreciation.post)
      @JoinColumn()
      appreciations: AppreciationsEntity[];
  }
  </code></pre>
  
  <p>What's wrong?</p>