|
|
|
@ -63,10 +63,10 @@ use Vich\UploaderBundle\Mapping\Annotation as Vich; |
|
|
|
|
* ) |
|
|
|
|
* @ApiFilter(OrderFilter::class, properties={"id", "name", "size", "updatedAt"}) |
|
|
|
|
* @ORM\Entity |
|
|
|
|
* @Vich\Uploadable |
|
|
|
|
* |
|
|
|
|
* @ORM\Table(name="resource_file") |
|
|
|
|
*/ |
|
|
|
|
#[Vich\Uploadable] |
|
|
|
|
#[ApiFilter(PropertyFilter::class)] |
|
|
|
|
#[ApiFilter(SearchFilter::class, properties: [ |
|
|
|
|
'name' => 'partial', |
|
|
|
@ -116,16 +116,14 @@ class ResourceFile |
|
|
|
|
*/ |
|
|
|
|
protected ?int $size = 0; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @Vich\UploadableField( |
|
|
|
|
* mapping="resources", |
|
|
|
|
* fileNameProperty="name", |
|
|
|
|
* size="size", |
|
|
|
|
* mimeType="mimeType", |
|
|
|
|
* originalName="originalName", |
|
|
|
|
* dimensions="dimensions" |
|
|
|
|
* ) |
|
|
|
|
*/ |
|
|
|
|
#[Vich\UploadableField( |
|
|
|
|
mapping: 'resources', |
|
|
|
|
fileNameProperty: 'name', |
|
|
|
|
size: 'size', |
|
|
|
|
mimeType: 'mimeType', |
|
|
|
|
originalName: 'originalName', |
|
|
|
|
dimensions: 'dimensions' |
|
|
|
|
)] |
|
|
|
|
protected ?File $file = null; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|