Skip to content

Latest commit

 

History

History

.docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Contributte Doctrine

All-in-on Doctrine meta package for Nette Framework.

Content

Setup

Install package

composer require nettrine/nettrine

Register extension

extensions:
  nettrine: Nettrine\Nettrine\DI\NettrineExtension

Relying

This package is composed of these packages:

Configuration

Schema definition

nettrine:
   debug: <bool>
   preset: <string|class>

Under the hood

Minimal configuration could look like this:

nettrine:
    debug: %debugMode%
    preset: default

Examples

1. Manual example

composer require nettrine/migrations
composer require nettrine/fixtures
composer require nettrine/dbal
composer require nettrine/orm
# Extension > Nettrine
# => order is crucial
#
extensions:
  # Common
  nettrine.annotations: Nettrine\Annotations\DI\AnnotationsExtension
  nettrine.cache: Nettrine\Cache\DI\CacheExtension
  nettrine.migrations: Nettrine\Migrations\DI\MigrationsExtension
  nettrine.fixtures: Nettrine\Fixtures\DI\FixturesExtension

  # DBAL
  nettrine.dbal: Nettrine\DBAL\DI\DbalExtension
  nettrine.dbal.console: Nettrine\DBAL\DI\DbalConsoleExtension

  # ORM
  nettrine.orm: Nettrine\ORM\DI\OrmExtension
  nettrine.orm.cache: Nettrine\ORM\DI\OrmCacheExtension
  nettrine.orm.console: Nettrine\ORM\DI\OrmConsoleExtension
  nettrine.orm.annotations: Nettrine\ORM\DI\OrmAnnotationsExtension

2. Example projects

We've made a few skeletons with preconfigured Nettrine nad Contributte packages.

3. Example playground

Other

This repository is inspired by these packages.

Thank you guys.