oroinc / platform

Main OroPlatform package with core functionality.
Other
627 stars 351 forks source link

Attachment Parent Entity Id #1078

Open andriusvo opened 2 years ago

andriusvo commented 2 years ago

Summary
In class File change field parentEntityId from int to string, because relations can have id fields as UUID for example.

Example
Real case - class Car have a relation with File. Car primary key id used as UUID (791d3208-cfa8-4853-8255-fe1089840a74) so in this case, parentEntityId will fail.