Bug #92148
closedSerialization of Repository is broken
100%
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)
Updated by Chris topher about 4 years ago
- Project changed from 9 to TYPO3 Core
- TYPO3 Version set to 10
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
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
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
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
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
Updated by Anonymous about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset bdba25c31614eb7c188eec674fb475439b2613b5.