saman/leanmodel

LeanMapper enchanced base classes + Nette extension.

This package's canonical repository appears to be gone and the package has been frozen as a result.

1.0.6 2015-05-12 17:20 UTC

This package is not auto-updated.

Last update: 2024-01-20 12:10:31 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