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

This package is not auto-updated.

Last update: 2024-04-18 23:35:16 UTC


README

Latest Doctrine integration for Nette Framework

Build Status Coverage Status Code Climate Scrutinizer Code Quality

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

Screenshot