salamek/gedmo

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

维护者

详细信息

github.com/Salamek/gedmo

源代码

问题

安装: 196

依赖: 1

建议: 0

安全: 0

星标: 0

关注者: 2

分支: 16

v1.0.2 2018-01-04 07:28 UTC

This package is not auto-updated.

Last update: 2024-09-21 03:31:09 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.