zkrat / n-orm-generator
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:TSQL
Requires
- php: >=7.3.0
- contributte/console: ^0.7.1
- nette/database: ^3.0
- nette/php-generator: ^3.3
- nette/robot-loader: ^3.2
- nette/tester: ^2.4@dev
- phayes/geophp: ^1.2
- tracy/tracy: ^2.6
This package is auto-updated.
Last update: 2024-12-11 01:24:02 UTC
README
composer require zkrat/n-orm-generator:dev-master
file content of console.config.neon:
extensions:
# console2: Contributte\Console\DI\ConsoleExtension(%consoleMode%)
n.orm.console: NOrmGenerator\Extension\NOrmExtension(%consoleMode%)
n.orm.console:
#require
dbDir: %appDir%/model/nORM/DbAccess
driverDir: %appDir%/model/nORM/meta
entityDir: %appDir%/model/nORM/entity
#options
overwrite: true
deleteGenFile: true
dbNamespace: Model\DbAccess
dbPrefix: Db
dbSuffix: ''
dbListPrefix: Db
dbListSuffix: ''
driverNamespace: Model\DbDriver
driverClassPrefix: 'Meta'
driverClassSuffix: ''
driverClassListPrefix: 'Meta'
driverClassListSuffix: List
entityNamespace: Model\Entity
entityRowPrefix: ''
entityRowSuffix: Row
entityListPrefix: ''
entityListSuffix: List
add to nette bootstrap.php
if (PHP_SAPI === 'cli') { // include console and console commands only if application is accessed through console $configurator->addConfig(__DIR__ . '/config/console.neon'); }