we’ve extended a custom entity with oro attachments. this works very well in the oro backend, however, we also need to set an attachment when it gets uploaded from a user via a rest api. can someone point out how the correct way for this would be to convert uploadedFile to an oro attachment and store all this then via gaufrette?
what I’ve found for now is to do it like this:PHP12$attachment = new Attachment();$attachment->setTarget($myEntity)->setFile($theConvertedFile);
but I am missing the conversion and the actual upload …
You must be logged in to reply to this topic.