tomaskarlik / entitymapper
Light entity mapper for Nette
v0.1
2017-10-25 22:35 UTC
Requires
- php: >=5.6
- nette/application: ~2.4.0
- nette/caching: ~2.4.0
- nette/database: ~2.4.0
- nette/di: ~2.4.0
- nette/reflection: ~2.4.0
- nette/utils: ~2.4.0
This package is not auto-updated.
Last update: 2024-12-22 07:06:20 UTC
README
Install
Download package
composer require tomaskarlik/entitymapper
Register extension in config.neon
extensions:
entityMapper: TomasKarlik\EntityMapper\DI\EntityMapperExtension
Extension configuration:
entityMapper:
directory: %appDir%/Model/Entity # entites root directory
password: mySecretPassword # password for encrypted fields (optional)
namespace: App\Model\Entity # NS of entites root directory
namespaces:
App\Model\Entity\User: # entity namespace group
- user # DB table
- user_group
\Work: # relative NS
- job
Create entity:
php console entity:create-entity user