Skip to content

rostenkowski/doctrine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doctrine

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