/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/ObjectMapper/Tests/Fixtures/MapExistingObject/PostDto.php
29 строк
631 B
takashiraki
[ObjectMapper] Fix an existing target object being reconstructed by a nested map() call
27 июл 2026, 22:53
27 июл 2026, 22:53
6544357
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\ObjectMapper\Tests\Fixtures\MapExistingObject; use Symfony\Component\ObjectMapper\Attribute\Map; #[Map(target: Post::class)] final class PostDto { #[Map] public string $title = 'a post'; #[Map(transform: NestedExistingTagTransformer::class)] public TagDto $tag; public function __construct() { $this->tag = new TagDto(); } }