Currently, when adding a File to your Doctrine entity, the path is calculated before persisting/updating and stored in the db.
There should be an option where the name is generated at runtime when loading/accessing the File property. For non-nullable File properties, there could be the possibility of not storing anything in the database. For nullable, we'd only need to store true/false.
Additionally, there could be a need to store metadata (as json) to be used when generating the path post-load.
Currently, when adding a File to your Doctrine entity, the path is calculated before persisting/updating and stored in the db.
There should be an option where the name is generated at runtime when loading/accessing the File property. For non-nullable File properties, there could be the possibility of not storing anything in the database. For nullable, we'd only need to store true/false.
Additionally, there could be a need to store metadata (as json) to be used when generating the path post-load.