grifix/entity-manager-bundle
Composer 安装命令:
composer require grifix/entity-manager-bundle
包简介
Grifix Entity Manager Symfony Bundle
README 文档
README
Integration grifix/entity-manager with Symfony
Installation
composer require grifix/entity-manager-bundle
Usage
- Read the Grifix Entity Manager documentation
- set up configuration as in this example:
doctrine:
dbal:
dbname: '%env(resolve:POSTGRES_DB)%'
host: db
port: 5432
user: '%env(resolve:POSTGRES_USER)%'
password: '%env(resolve:POSTGRES_PASSWORD)%'
driver: pdo_pgsql
grifix_entity_manager:
entities:
- name: person
table: persons
object_class: Grifix\EntityManagerBundle\Tests\Dummies\Person
version_converter: Grifix\EntityManagerBundle\Tests\Dummies\PersonVersionConverter
dependencies:
- outside
schemas:
#v1
- - property: id
type: string
- property: name
type: string
#v2
- - property: id
type: string
- property: firstName
type: string
- property: lastName
type: string
services:
Grifix\EntityManagerBundle\Tests\Dummies\PersonVersionConverter:
public: true
Grifix\EntityManagerBundle\Tests\Dummies\PersonOutside:
public: true
- Inject entity manager as a dependency or get it from
the Symfony Container
instead of creating it by
EntityManager::create()
统计信息
- 总下载量: 42
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-09