<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>TYPO3 Extbase: Undelete (restore) functionality</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/964 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="964"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;Simply adding a &lt;tt class="docutils literal"&gt;setDeleted()&lt;/tt&gt; method and &lt;tt class="docutils literal"&gt;$deleted&lt;/tt&gt; property to the Extbase domain model is not sufficient.
You also have to add the &lt;tt class="docutils literal"&gt;deleted&lt;/tt&gt; column to the table's TCA &lt;tt class="docutils literal"&gt;columns&lt;/tt&gt; array.&lt;/p&gt;
&lt;p&gt;Otherwise Extbase's &amp;quot;Persistence Backend&amp;quot; used by the domain repository will decide that the property is not &lt;tt class="docutils literal"&gt;isPersistableProperty()&lt;/tt&gt;, and skip over it.&lt;/p&gt;
&lt;p&gt;Links:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference external" href="https://stackoverflow.com/questions/79841935/extbase-domain-model-version-property-is-not-stored-in-database"&gt;https://stackoverflow.com/questions/79841935/extbase-domain-model-version-property-is-not-stored-in-database&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/pull/6479"&gt;https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/pull/6479&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/964/rev-raw/dd60139350497c31d21d91697e442029f74d2c11/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/964#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
