/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/ObjectMapper/Tests/Fixtures/NestedClassTransform/Pet.php
20 строк
483 B
lazerg
[ObjectMapper] Skip nested mapping when no target fits the destination property type
05 авг 2026, 18:31
05 авг 2026, 18:31
8feca76
Код
Авторство
О чём код?
<?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\NestedClassTransform; use Symfony\Component\ObjectMapper\Attribute\Map; #[Map(target: Animal::class, transform: [Dog::class, 'transform'])] class Pet { public string $name = 'rex'; }