DB

Brain’s DB connection is done through Doctrine DBAL.

Database Connection

A default database connection is set in config/container.php. Configuration for the connection is in config/db.php.

The ‘db’ Array

Out of the box Brain needs a few database tables if you intend to test all of it’s functionality. Authentication, database based sessions, file uploads, and database based views all require tables that are referenced in the ‘db’ array. The benefit to these references is that you can change the actual table name without requiring changes to your models.