zenstruck / filesystem

Wrapper for league/flysystem with alternate API and added functionality.
MIT License
19 stars 3 forks source link

[Doctrine] "Lazy Namer" #74

Closed kbond closed 1 year ago

kbond commented 2 years ago

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.