title: Persistence property of File in typo3
body: <p>I'm trying to set deleted() property of TYPO3\CMS\Core\Resource\File and make it actually permanent saving that property on the database.
  I need to update my FileReference but is not working, is adding a new image to my record.</p>
  <p>So I do:</p>
  <pre><code>$fileReference-&gt;getOriginalFile()-&gt;setDeleted(true);
  </code></pre>
  <p>But then? How is possible to save that into the sys_file table? There is a TYPO3\CMS\Core\Resource\FileRepository but it doesn't have an update() method.</p>