rixxi/gedmo

使用 Kdyby/Doctrine 将 Gedmo Doctrine Extensions 集成到 Nette 框架中

维护者

详细信息

github.com/rixxi/gedmo

源代码

问题

安装量: 63,829

依赖: 3

建议: 0

安全: 0

星标: 13

关注者: 3

分支: 16

开放问题: 2

1.0.7 2016-02-24 17:58 UTC

README

需求

Rixxi/Gedmo 需要 Kdyby/Doctrine

安装

安装 Rixxi/Gedmo 的最佳方法是使用 Composer

$ composer require rixxi/gedmo

配置

安装 Rixxi/Gedmo 的最佳方法是使用 Composer

extensions:
	gedmo: Rixxi\Gedmo\DI\OrmExtension
	# you should probably register Kdyby/Doctrine too
	doctrine: Kdyby\Doctrine\DI\OrmExtension

gedmo:
	translatableLocale: cs_CZ
	defaultLocale: cs_CZ

	# enable all annotations
	all: on
	# enable per annotation
	loggable: on
	sluggable: on
	softDeleteable: on
	sortable: on
	timestampable: on
	translatable: on
	treeable: on
	uploadable: on

# you must add bit type to your doctrine connection and soft-deleteable to filters
doctrine:
	types:
		bit: Doctrine\DBAL\Types\BooleanType

	filters:
		# without this softDeleteable won't work...            ...probably
		soft-deleteable: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter

仓库 http://github.com/rixxi/gedmo.