Project

General

Profile

Actions

Bug #89777

closed

Extbase objects retrieved from a fe_user session cannot be persisted in their Repository

Added by Christian Eßl almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2019-11-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

How to reproduce:

- Save an extbase model object in the fe_user session:

$GLOBALS['TSFE']->fe_user->setKey('ses', 'sessionname', $foo);

- Now retrieve the object from the session:

$foo = $GLOBALS['TSFE']->fe_user->getKey('ses', 'sessionname');

- A complete extbase model object will now be retrieved. However if you use the "update" method of the Repository, the call will fail with the exception:

$fooRepository->update($foo);
The object of type "Foo" given to update must be persisted already, but is new.

If you call _isNew() on the object from the session, it will return false.

Actions #1

Updated by Gerrit Code Review almost 5 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62782

Actions #2

Updated by Christian Eßl over 4 years ago

As discussed on gerrit, not really a bug and should not be fixed. -> issue can be closed.

Actions #3

Updated by Björn Jacob over 4 years ago

  • Status changed from Under Review to Closed

Thx for your feedback. Closing it as requested.

Actions

Also available in: Atom PDF