rekalogika / file-association
Handles the association between Doctrine entities and files using the rekalogika/file framework, including from file uploads.
Fund package maintenance!
2.4.2
2026-05-09 15:55 UTC
Requires
- php: ^8.2
- psr/cache: ^2 || ^3
- psr/http-message: ^1.0 || ^2.0
- psr/log: ^2 || ^3
- rekalogika/file-association-contracts: ^2.4.2
- rekalogika/file-contracts: ^2.4.2
- rekalogika/file-null: ^2.4.2
- rekalogika/reconstitutor: ^2.4
- symfony/deprecation-contracts: ^3.1
- symfony/service-contracts: ^3.1
This package is auto-updated.
Last update: 2026-06-09 16:07:19 UTC
README
Handles the association between Doctrine entities and files using the rekalogika/file framework, including from file uploads.
Features
- Requires only a single property in the entity for each associated file.
- File properties are file properties. It is not necessary to store any of the file's properties in the entity associated with the file.
- DX improvement, less micro-management of entity-file relations.
- Reads and writes directly into the file properties, even if private. You are free to have business logic in the getters and setters.
- Doesn't require you to update another property of the entity (
lastUpdated?) just to make sure the correct Doctrine events will be fired.
Documentation
License
MIT
Contributing
The rekalogika/file-association repository is a read-only repo split from the
main repo. Issues and pull requests should be submitted to the
rekalogika/file-src monorepo.