J'ai une entité place avec une photo uploadable comme ceci:Convertir nom de photo à l'url
/**
* @ORM\Column(type="string", length=255)
* @var string
* @ApiProperty(iri="http://schema.org/photo")
* @Groups({"read"})
*/
private $photo;
/**
* @Vich\UploadableField(mapping="image", fileNameProperty="photo")
* @var File
* @Assert\NotBlank()
* @Assert\File(
* maxSize = "1024k",
*)
*/
private $photoFile;
Quand je demande l'api je reçois le nom de photo de l'entité, mais je veux l'url photo (absolue url) à exploiter directement dans mon application angulaire. Vich Uploader a un assistant à retrieve the path of the photo mais je ne peux pas le faire directement dans la méthode getPhoto(), alors comment puis-je faire?