Latest Doctrine integration for Nette Framework
composer require rostenkowski/doctrine
extensions:
doctrine: Rostenkowski\Doctrine\Extension
doctrine:
entities:
- %appDir%/entities
- %baseDir%/libs/more-entities
doctrine:
connection:
driver: pdo_sqlite
path: %appDir%/db.sqlite
doctrine:
connection:
driver: pdo_pgsql
host: 127.0.0.1
dbname: database
user: user
password: ***
Mandatory factory
must be or must return a class implementing the Doctrine\DBAL\Logging\SQLLogger
interface.
Optional args
are passed to the factory or constructor.
doctrine:
logger:
enabled: yes
factory: SomeNamespace\CustomLogger
args: [ some, parameters ]
Custom debugger panel width and height can be set.
doctrine:
debugger:
enabled: yes
width: 960px
height: 720px