saman/leanmodel

LeanMapper enchanced base classes + Nette extension.

Installs: 84

Dependents: 1

Stars: 3

Watchers: 4

Forks: 1

Language: PHP

1.0.6 2015-05-12 17:20 UTC

README

Model skeleton for Nette 2.2 based on Leanmapper ORM.

Add to config.neon:

extensions:
    leanModel: LeanModel\LeanModelExtension

leanModel:
    defaultEntityNamespace: "defaultEntityNamespace"  # "App\Model" if not set
    mapper: LeanModel\Mapper
    entityFactory: LeanModel\EntityFactory

and to config.local.neon:

leanModel:
    host: "hostName"
    username: "userName"
    password: "password"
    database: "databaseName"
    profiler: on|off