Adapter that allows you to store data into a database.
connection_name
The doctrine dbal connection name likedefault
table
The table name likemedia_data
key
: The primary key in the tablecontent
: The field name of the file contentmtime
: The field name of the timestampchecksum
: The field name of the checksum
# app/config/config.yml
knp_gaufrette:
adapters:
database:
doctrine_dbal:
connection_name: default
table: data
columns:
key: id
content: text
mtime: date
checksum: checksum