http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692015-05-06T18:45:14ZTYPO3 ForgeTYPO3 Core - Bug #66813: Persisting extbase FileReference does not work with default TCA configurationhttp://forge.typo3.org/issues/66813?journal_id=2580692015-05-06T18:45:14ZWouter Wolterstypo3@wouterwolters.nl
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>Hi Philipp,</p>
<p>This not the right place to ask questions. This a bugtracker. Please use the Mailinglist/Forum for questions.<br />Forum can be found at <a class="external" href="https://forum.typo3.org/">https://forum.typo3.org/</a></p>
<p>I will close this ticket to keep the bugtracker clean.</p> TYPO3 Core - Bug #66813: Persisting extbase FileReference does not work with default TCA configurationhttp://forge.typo3.org/issues/66813?journal_id=2581282015-05-07T11:47:36ZHelmut Hummeltypo3@helhum.io
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Accepted</i></li><li><strong>Complexity</strong> set to <i>hard</i></li></ul><p>This is an inconsistency, which is worth tackling. However, I'm not sure <br />yet whether we should do son in the TCA helper method or in Extbase <br />peristence …</p>
<p>I</p> TYPO3 Core - Bug #66813: Persisting extbase FileReference does not work with default TCA configurationhttp://forge.typo3.org/issues/66813?journal_id=2584532015-05-10T09:48:11ZPhilipp Kerling
<ul></ul><p>I've noticed that at least 'tablenames' does seem to get set when the domain model uses an ObjetStorage for multiple FAL references. 'table_local' is still empty.</p>
So I'd say fix it in Extbase, since the TCA should be OK the way it is.
<ul>
<li>'tablenames' can be inferred from TCA 'foreign_table_field' which is correctly set. This needs to get fixed in Extbase when persisting properties that are a single FileReference (those properties currently have some other problems, but I'll file separate bug reports for that)</li>
<li>'table_local' should (always) be set to 'sys_file' because that is the default value for the column given in the 'sys_file_reference' TCA.</li>
</ul> TYPO3 Core - Bug #66813: Persisting extbase FileReference does not work with default TCA configurationhttp://forge.typo3.org/issues/66813?journal_id=3557002018-01-24T20:02:51ZSusanne Moogsusanne.moog@typo3.org
<ul><li><strong>Category</strong> set to <i>Extbase</i></li></ul> TYPO3 Core - Bug #66813: Persisting extbase FileReference does not work with default TCA configurationhttp://forge.typo3.org/issues/66813?journal_id=4065712019-09-24T18:49:44ZChristian Eßl
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-8 priority-4 priority-default" href="/issues/88833">Feature #88833</a>: Extend possibility to create FileReference in frontend with a given File object</i> added</li></ul> TYPO3 Core - Bug #66813: Persisting extbase FileReference does not work with default TCA configurationhttp://forge.typo3.org/issues/66813?journal_id=4154512020-02-16T13:23:55ZChristian Eßl
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-8 priority-4 priority-default" href="/issues/90374">Feature #90374</a>: Add setOriginaFile / setFile setter to TYPO3\CMS\Extbase\Domain\Model\FileReference</i> added</li></ul> TYPO3 Core - Bug #66813: Persisting extbase FileReference does not work with default TCA configurationhttp://forge.typo3.org/issues/66813?journal_id=4890162023-03-17T23:40:40ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>Accepted</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>main</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/78166">https://review.typo3.org/c/Packages/TYPO3.CMS/+/78166</a></p> TYPO3 Core - Bug #66813: Persisting extbase FileReference does not work with default TCA configurationhttp://forge.typo3.org/issues/66813?journal_id=4890172023-03-17T23:52:52ZGerrit Code Review
<ul></ul><p>Patch set 2 for branch <strong>main</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/78166">https://review.typo3.org/c/Packages/TYPO3.CMS/+/78166</a></p> TYPO3 Core - Bug #66813: Persisting extbase FileReference does not work with default TCA configurationhttp://forge.typo3.org/issues/66813?journal_id=4952622023-06-26T10:12:22ZStefan Froemkenfroemken@gmail.com
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Stefan Froemken</i></li></ul><p>Hello Philipp,</p>
<p>thank you for providing this issue to us.<br />I have just tried to test that issue in TYPO3 12.4.2 and can not reproduce it anymore.</p>
Here are some annotations regarding your ticket:
<ul>
<li>Setting uid_foreign AND uid_to a random value is not the way to go</li>
<li>getFileFieldTCAConfig is replaced by type = 'file'</li>
<li>tablename will be set automatically now</li>
<li>table_local has been removed</li>
</ul>
<p>IMO this problem is solved now.</p>
<p>I will close the ticket now. If you feel this is the wrong decision, let me know, and I will re-open it.</p>
<p>Stefan</p>