private function storeFileUploads(UploadObjectInterface $object)
    {
        $reflectionClass = new ReflectionClass($object);
        $objectName = $reflectionClass->getShortName();

        $fileUploads = $object->getFileUploads();
        $fileFieldConfigurations = $this->flexModel->getFieldsByDatatype($objectName, 'FILE');
        foreach ($fileFieldConfigurations as $fileFieldConfiguration) {
            $camelizedFieldName = Container::camelize($fileFieldConfiguration['name']);
            $fileFieldProperty = lcfirst($camelizedFieldName);
            if (isset($fileUploads[$fileFieldProperty])) {
                $getter = 'get'.$camelizedFieldName;
                $setter = 'set'.$camelizedFieldName.'Upload';

                $fileUploads[$fileFieldProperty]->move($this->getFilePath($objectName, $fileFieldConfiguration['name']), $object->$getter());

                $object->$setter(null);
            }
        }
    }
private function storeFileUploads(UploadObjectInterface $object)
    {
        $reflectionClass = new ReflectionClass($object);
        $objectName = $reflectionClass->getShortName();

        $fileUploads = $object->getFileUploads();
        $fileFieldConfigurations = $this->flexModel->getFieldsByDatatype($objectName, 'FILE');
        foreach ($fileFieldConfigurations as $fileFieldConfiguration) {
            $camelizedFieldName = Container::camelize($fileFieldConfiguration['name']);
            $fileFieldProperty = lcfirst($camelizedFieldName);
            if (isset($fileUploads[$fileFieldProperty])) {
                $getter = 'get'.$camelizedFieldName;
                $setter = 'set'.$camelizedFieldName.'Upload';

                $fileUploads[$fileFieldProperty]->move($this->getFilePath($objectName, $fileFieldConfiguration['name']), $object->$getter());

                $object->$setter(null);
            }
        }
    }
private function storeFileUploads ( UploadObjectInterface $ object ) { $ reflectionClass = new ReflectionClass ( $ object ) ; $ objectName = $ reflectionClass -> getShortName ( ) ; $ fileUploads = $ object -> getFileUploads ( ) ; $ fileFieldConfigurations = $ this -> flexModel -> getFieldsByDatatype ( $ objectName , 'FILE' ) ; foreach ( $ fileFieldConfigurations as $ fileFieldConfiguration ) { $ camelizedFieldName = Container :: camelize ( $ fileFieldConfiguration [ 'name' ] ) ; $ fileFieldProperty = lcfirst ( $ camelizedFieldName ) ; if ( isset ( $ fileUploads [ $ fileFieldProperty ] ) ) { $ getter = 'get' . $ camelizedFieldName ; $ setter = 'set' . $ camelizedFieldName . 'Upload' ; $ fileUploads [ $ fileFieldProperty ] -> move ( $ this -> getFilePath ( $ objectName , $ fileFieldConfiguration [ 'name' ] ) , $ object -> $ getter ( ) ) ; $ object -> $ setter ( null ) ; } } }
Stores the uploaded files to the specified file system location.

@param UploadObjectInterface $object
Stores the uploaded files to the specified file system location .