platform
platform copied to clipboard
Attachment Parent Entity Id
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.