Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #10680 Fix ChannelCollector related serialization issue in Symfon…
…y profiler (ostrolucky) This PR was merged into the 1.4 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.4 | Bug fix? | yes | New feature? | no | BC breaks? | unlikely, but possible | Deprecations? | no | Related tickets | fixes #10223 | License | MIT This is very annoying long standing issue. I'm pretty sure this will fix the issue (it does in our case). As a side effect, this is more efficient, as there is less data needed to be serialized. This issue is related to circular references inside Channel model. In our case we can reproduce with ```php $n = new Channel(); $locale = new Locale(); $n->addLocale($locale); $n->setDefaultLocale($locale); $this->data = [ 'channel' => null, 'channels' => [$n], 'channel_change_support' => $channelChangeSupport, ]; ``` inside ChannelCollector I'm aware changing return type is technically BC break, but it's unlikely somebody uses this class. If this is an issue, please advise how to continue. Commits ------- 54baf2d Fix ChannelCollector related serialization issue in Symfony profiler
- Loading branch information