title: TypeORM - One to Many: EntityColumnNotFound: No entity column "context.physicalPresets" was found
body: <p>I get the following error when updating <code>Project</code> entity: <code>EntityColumnNotFound: No entity column "context.physicalPresets" was found</code>.</p>
  
  <p><code>ProjectContext</code> is embeded in <code>Project</code> as described here <a href="https://typeorm.io/#/embedded-entities" rel="noreferrer">https://typeorm.io/#/embedded-entities</a>. <code>ProjectContext</code> has a OneToMany relation to <code>Physical</code> entity.</p>
  
  <pre class="lang-js prettyprint-override"><code>@Entity()
  export class Project extends BaseEntityModel {
    // embedded
    @Column(type =&gt; ProjectContext)
    context: ProjectContext;
  }
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>// embedded entity
  @Entity()
  export class ProjectContext {
    @OneToMany(type =&gt; Physical, physical =&gt; physical.project, {
      eager: true,
    })
    @JoinColumn()
    physicalPresets: Physical[];
  }
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>@Entity()
  export class Physical extends BaseEntityModel {
    @ManyToOne(
      type =&gt; Project, project =&gt; project.context.physicalPresets,
      {onDelete: 'CASCADE'},
    )
    project: Project;
  }
  </code></pre>
  
  <p>Not more success with:</p>
  
  <pre class="lang-js prettyprint-override"><code>@Entity()
  export class Physical extends BaseEntityModel {
   @ManyToOne(
      type =&gt; ProjectContext, projectContext =&gt; projectContext.physicalPresets,
      {onDelete: 'CASCADE'},
    )
    projectContext: ProjectContext;
  }
  </code></pre>
  
  <p>I get <code>Entity metadata for Physical#projectContext was not found. Check if you specified a correct entity object and if it's connected in the connection options</code>.</p>
  
  <pre class="lang-js prettyprint-override"><code>  async update(entity: Project): Promise&lt;UpdateResult&gt; {
      return await this.repository.update(entity.id, entity);
    }
  </code></pre>
  
  <p>Is it possible to have OneToMany relationship in an embed entity, if yes how?</p>