Depending on some logic, i put my uploaded file on the needed UploadableField property, and the bundle handles the job, which is working really great for now.
BUT when i try to delete a photo entity linked to demandeIntervention entity, i have the following error PropertyAccessor requires a graph of objects or arrays to operate on, but it found type "NULL" while trying to traverse path "signalement.id" at property "id".
same thing on the other side when linked to the other entity.
The bundle seems to try to delete the file on both storage, whilst it don't exist in one of the two. How can i prevent this ?
PS: i need this directory structure
Support Question
Hey ! So i have this entity which can be related to two different other entities
It have two different mappings because i need to store it a two different locations depending on the entity it is related to (my config)
Depending on some logic, i put my uploaded file on the needed UploadableField property, and the bundle handles the job, which is working really great for now. BUT when i try to delete a photo entity linked to demandeIntervention entity, i have the following error
PropertyAccessor requires a graph of objects or arrays to operate on, but it found type "NULL" while trying to traverse path "signalement.id" at property "id".
same thing on the other side when linked to the other entity. The bundle seems to try to delete the file on both storage, whilst it don't exist in one of the two. How can i prevent this ? PS: i need this directory structure