KnpGaufretteBundle/Resources/docs/adapters/doctrine_dbal.md

30 lines
731 B
Markdown
Raw Permalink Normal View History

2017-01-16 13:00:11 +00:00
# Doctrine DBAL
Adapter that allows you to store data into a database.
## Parameters
* `connection_name` The doctrine dbal connection name like `default`
* `table` The table name like `media_data`
* `key`: The primary key in the table
* `content`: The field name of the file content
* `mtime`: The field name of the timestamp
* `checksum`: The field name of the checksum
## Example
``` yaml
# app/config/config.yml
knp_gaufrette:
adapters:
database:
doctrine_dbal:
connection_name: default
table: data
columns:
key: id
content: text
mtime: date
checksum: checksum
```