Léonard Binet
Léonard Binet
@kamilmysliwiec sorry I didn't notice your answer, the concern is as @jarPotato states it that I still want to be able to send messages, I just want to disable the...
From what I understand, foreign keys are usually automatically inferred from the `cascade` option on relations: cf https://mikro-orm.io/docs/cascading. Rather than giving the ability to set a default `updateRule`/`deleteRule` in configuration,...
EDIT: I think I misunderstood your comment. Ok, indeed we could set cascade via metadata hook. ~~It seems to me that if we "simply" override the `onUpdate` or `onDelete` default...
in `packages/knex/src/schema/DatabaseTable.tsL155` I see ``` const cascade = prop.cascade.includes(Cascade.REMOVE) || prop.cascade.includes(Cascade.ALL); if (prop.deleteRule || cascade || prop.nullable) { this.foreignKeys[constraintName].deleteRule = prop.deleteRule || (cascade ? 'cascade' : 'set null'); } if...
Thanks a lot for those precisions, as always your reactivity is really appreciated 🙏