In the following...
Code:
/**
* Get storage
*
* @return \XLite\Module\CDev\FileAttachments\Model\Product\Attachment\Storage
*/
public function getStorage()
{
if (!$this->storage) {
$this->setStorage(new \XLite\Module\CDev\FileAttachments\Model\Product\Attachment\Storage);
$this->storage->setAttachment($this);
}
return $this->storage;
}
Am I right in thinking that the code creates a storage object and then adds the uploaded file to it?
I can't find setAttachment anywhere in the x5 source code to see what it's doing.