Project

General

Profile

Actions

Bug #92148

closed

Serialization of Repository is broken

Added by Raphael Mutschler about 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-09-01
Due date:
% Done:

100%

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

Description

In v10 when serializing a Domainmodel with an injected Repository the following exception is thrown:

(1/1) Exception
Serialization of 'Closure' is not allowed

Example Code

Model:

namespace FreyhauerTeam\FySeminars\Domain\Model;

class Lecturer extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{

  /**
   * timeslotRepository
   *
   * @var \FreyhauerTeam\FySeminars\Domain\Repository\TimeslotRepository
   * @TYPO3\CMS\Extbase\Annotation\Inject
   */
  protected $timeslotRepository = null;

  [...]
}

Controller:

// $lecturer = Class Lecturer
serialize($lecturer)

Actions #1

Updated by Chris topher about 4 years ago

  • Project changed from 9 to TYPO3 Core
  • TYPO3 Version set to 10
Actions #2

Updated by Gerrit Code Review about 2 years ago

  • Status changed from New to Under Review

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

Actions #3

Updated by Gerrit Code Review about 2 years ago

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

Actions #4

Updated by Gerrit Code Review about 2 years ago

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

Actions #5

Updated by Gerrit Code Review about 2 years ago

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

Actions #6

Updated by Gerrit Code Review about 2 years ago

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

Actions #7

Updated by Anonymous about 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF