DoctrineExtensions SoftDeleteable [英] DoctrineExtensions SoftDeleteable

查看:222
本文介绍了DoctrineExtensions SoftDeleteable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用doctrine2设置symfony2,我想使用DoctrineExtensions(Gedmo)
我按照每一步,大多数工作正常,但是我找不到配置文件,我需要对其进行更改
SoftDeleteable工作。



https://github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/softdeleteable.md

 
$ config = new Doctrine\ORM\Configuration;

//你的配置..

$ config-> addFilter('soft-deleteable','Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter');


解决方案

我相信问题是您使用的是symfony 2.0,其中包含了原则2.1。您正在查看的DoctrineExtensions的版本不支持原则2.1。



如果您轻击github中的doctrine2.1.x分支,则不提不幸的是,这个软币很可怜。


I'm setting up symfony2 with doctrine2 and I want to use the DoctrineExtensions (Gedmo) I followed every step, and most is working, but I fail to locate the config file where I need to make changes for the SoftDeleteable to work.

https://github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/softdeleteable.md

$config = new Doctrine\ORM\Configuration;

// Your configs..

$config->addFilter('soft-deleteable', 'Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter');

解决方案

I believe the problem is that you're using symfony 2.0 which includes doctrine 2.1. The version of the DoctrineExtensions you're looking at doesn't support doctrine 2.1.

If you flick to the doctrine2.1.x branch in github it doesn't mention softdeletable unfortunately.

这篇关于DoctrineExtensions SoftDeleteable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆