eugene-manuilov/typeorm-uml

OneToOne relation with wrong UML arrows

hugoseabra opened this issue · 3 comments

Good job on the project @eugene-manuilov .

I appreciate you check OneToOne relations. The arrows in diagram behave like ManyToOne relation.

Example:

 @OneToOne(() => StandardName, {
    eager: true,
    onDelete: "SET NULL"
  })
  @JoinColumn()
  standardName!: StandardName;

In UML I have:

image

Actually the arrows should be -|---------

Thanks for submitting it, @hugoseabra! I have fixed it and published the new version 1.6.1. Could you please update it on your end and try it out? Let me know if it works correctly now.

Ok, I think this can be considered as resolved. Closing this ticket. Feel free to open a new one if something doesn't work.

Yes, correctoin applied in 1.6.1.

Thanks @eugene-manuilov !!!