protected function loadFiles(
        EntityManagerInterface $entityManager,
        $object,
        UploadableClassMetadata $uploadableMeta
    ): void {
        $this->assertIsObject($object);
        $propertyManipulator = $this->getPropertyManipulator($entityManager);
        foreach ($uploadableMeta->getUploadableProperties() as $property => $config) {
            $key = $propertyManipulator->getPropertyValue($object, $property);

            if (!empty($key)) {
                $propertyManipulator->setAndSaveValue(
                    $object,
                    $config['targetField'],
                    new File($key, $this->computeFilesystem($config))
                );
            }
        }
    }
protected function loadFiles(
        EntityManagerInterface $entityManager,
        $object,
        UploadableClassMetadata $uploadableMeta
    ): void {
        $this->assertIsObject($object);
        $propertyManipulator = $this->getPropertyManipulator($entityManager);
        foreach ($uploadableMeta->getUploadableProperties() as $property => $config) {
            $key = $propertyManipulator->getPropertyValue($object, $property);

            if (!empty($key)) {
                $propertyManipulator->setAndSaveValue(
                    $object,
                    $config['targetField'],
                    new File($key, $this->computeFilesystem($config))
                );
            }
        }
    }
protected function loadFiles ( EntityManagerInterface $ entityManager , $ object , UploadableClassMetadata $ uploadableMeta ) : void { $ this -> assertIsObject ( $ object ) ; $ propertyManipulator = $ this -> getPropertyManipulator ( $ entityManager ) ; foreach ( $ uploadableMeta -> getUploadableProperties ( ) as $ property => $ config ) { $ key = $ propertyManipulator -> getPropertyValue ( $ object , $ property ) ; if ( ! empty ( $ key ) ) { $ propertyManipulator -> setAndSaveValue ( $ object , $ config [ 'targetField' ] , new File ( $ key , $ this -> computeFilesystem ( $ config ) ) ) ; } } }
Load object files and attach observers for key fields.

@param EntityManagerInterface $entityManager
@param object $object
@param UploadableClassMetadata $uploadableMeta
@return void
Load object files and attach observers for key fields .