Skip to content

Commit

Permalink
Merge pull request #1397 from qdequippe/sample-usage-doc
Browse files Browse the repository at this point in the history
Update example with Embedded
  • Loading branch information
garak authored Jul 20, 2023
2 parents c90da0d + be0eb6d commit 05f4df4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ class Product
// ... other fields
// NOTE: This is not a mapped field of entity metadata, just a simple property.
#[Vich\UploadableField(mapping: 'products', fileNameProperty: 'image.name', size: 'image.size')]
private ?File $imageFile = null;
#[ORM\Embedded(class: 'Vich\UploaderBundle\Entity\File')]
private ?EmbeddedFile $image = null;
Expand Down

0 comments on commit 05f4df4

Please sign in to comment.