rostenkowski / doctrine
There is no license information available for the latest version (v1.0.8) of this package.
v1.0.8
2018-07-18 16:03 UTC
Requires
- php: >=7.1
- ext-mbstring: *
- ext-pdo: *
- ext-tokenizer: *
- doctrine/orm: ^2.7
- nette/di: ^3.0
- nette/utils: ^3.0
- symfony/console: ^3.4
Requires (Dev)
- nette/tester: ^2
- tracy/tracy: ^2.4
README
Latest Doctrine integration for Nette Framework
Installation
composer require rostenkowski/doctrine
Usage
extensions: doctrine: Rostenkowski\Doctrine\Extension
Mapped entities
doctrine: entities: - %appDir%/entities - %baseDir%/libs/more-entities
SQLite Connection
doctrine: connection: driver: pdo_sqlite path: %appDir%/db.sqlite
PostgreSQL Connection
doctrine: connection: driver: pdo_pgsql host: 127.0.0.1 dbname: database user: user password: ***
Setup Custom Logger
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 ]
Tracy Debugger Bar
Custom debugger panel width and height can be set.
doctrine: debugger: enabled: yes width: 960px height: 720px