2012-04-07 1 views
2

私はsymfony2をdoctrine2に設定していますが、DoctrineExtensions(Gedmo)を使用したいです。 私はすべての手順に従いましたが、大部分は動作していますが、設定ファイルを見つけることができません。 SoftDeleteableを動作させます。DoctrineExtensions SoftDeleteable

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'); 
+0

チェックアウトこの説明に以下を追加することによって、それを修正:https://github.com/stof/ StofDoctrineExtensionsBundle/blob/master/Resources/doc/index.rst – AaL

答えて

0

私はこの問題は、あなたが教義2.1が含まれてsymfonyの2.0を使用していることであると信じています。あなたが見ているDoctrineExtensionsのバージョンは、doctrine 2.1をサポートしていません。

githubのdoctrine2.1.xブランチにフリックすると、残念なことにsoftdeletableは言及されません。

0

この問題自分自身を越え蘭と(「softdeleteableフィルタを有効にする」)私のconfig.yml

doctrine: 
    ... 
    orm: 
     ... 
     filters: 
      softdeleteable: 
       class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter 
       enabled: true 
関連する問題