function DoctrineCaster::castPersistentCollection
File
-
vendor/
symfony/ var-dumper/ Caster/ DoctrineCaster.php, line 52
Class
- DoctrineCaster
- Casts Doctrine related classes to array representation.
Namespace
Symfony\Component\VarDumper\CasterCode
public static function castPersistentCollection(PersistentCollection $coll, array $a, Stub $stub, bool $isNested) : array {
foreach ([
'snapshot',
'association',
'typeClass',
] as $k) {
if (\array_key_exists($k = "\x00Doctrine\\ORM\\PersistentCollection\x00" . $k, $a)) {
$a[$k] = new CutStub($a[$k]);
}
}
return $a;
}