Method | Description | |
---|---|---|
__construct ( |
||
replaceTemporaryFile ( |
Replaces any temporary images with actual instances of the configured UploadedFile collection. |
Method | Description | |
---|---|---|
getReferenceSetter ( $inverseSideEntity, $owningSideEntity ) : boolean | string | Returns the setter name for the inverse side. | |
replaceFile ( |
||
setReplacementFile ( string $targetEntity, |
Replaces the TemporaryUploadedFile or TempImage with the actual instance. Automatically sets the reference to the owning entity. |
public __construct ( |
||
$uploadedFileService | ||
$imageService | ||
$reader | Doctrine\Common\Annotations\Reader | |
$propertyAccessor | Symfony\Component\PropertyAccess\PropertyAccessorInterface | |
$iriConverter | Dunglas\ApiBundle\Api\IriConverterInterface |
protected getReferenceSetter ( $inverseSideEntity, $owningSideEntity ) : boolean | string | ||
$inverseSideEntity | ||
$owningSideEntity | ||
return | boolean | string |
protected replaceFile ( |
||
$target | ||
$source |
public replaceTemporaryFile ( |
||
$event | The event |
protected setReplacementFile ( string $targetEntity, |
||
$targetEntity | string | The entity to create |
$source | The source entity | |
$target | object | The entity where to set the property |
return | object | The newly created object instance |