title: Update parent entity when updating children on cascade
body: <p>I am looking for a way to update parents entities when updating children entity using cascade on a OneToMany relationship.</p>
  
  <h3>Entities</h3>
  
  <pre class="lang-js prettyprint-override"><code>@Entity()
  export class Activity {
  
      @PrimaryGeneratedColumn()
      id: number;
  
      @CreateDateColumn()
      createAt: Date;
  
      @UpdateDateColumn()
      updatedAt: Date;
  
      @OneToMany(
          type =&gt; ActivityTranslation,
          activity_translation =&gt; activity_translation.activity,
          {
              cascade: true
          }
      )
      activity_translations: ActivityTranslation[]
  
  }
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>@Entity()
  export class ActivityTranslation {
  
      @PrimaryGeneratedColumn()
      id: number;
  
      @Column()
      name: string;
  
      @CreateDateColumn()
      createAt: Date;
  
      @UpdateDateColumn()
      updatedAt: Date;
  
      @ManyToOne(
          type =&gt; Activity,
          activity =&gt; activity.activity_translations,
          {
              onUpdate: 'CASCADE'
          }
      )
      activity: Activity
  
  }
  </code></pre>
  
  <h3>Repository</h3>
  
  <pre class="lang-js prettyprint-override"><code>    public async updateActivityTranslation(activity_translation: ActivityTranslationModel): Promise&lt;ActivityTranslationModel&gt; {
          try {
              delete activity_translation.updatedAt;
              return this.repository.save(activity_translation);
          } catch {
              throw new ServerError("Unable to update activity translation")
          }
      }
  </code></pre>
  
  <h3>Controller</h3>
  
  <pre class="lang-js prettyprint-override"><code>        await this.activityTranslationRepository.updateActivityTranslation(activity_translations[i]);
  </code></pre>
  
  <p>The activity_translation is updated as expected.
  I would like to update the updatedAt column of activity entity when saving activity_translation entity.</p>
  
  <p>I tried everything I found about cascade issues on GitHub and StackOverflow.</p>
  
  <p>Thank you for your help.</p>