Skip to content

Commit 3bfcf1a

Browse files
committed
add doctrine 2.5 cache methods for class / repository completion #203
1 parent 4a0c942 commit 3bfcf1a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/fr/adrienbrault/idea/symfony2plugin/config/SymfonyPhpReferenceContributor.java

+9
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ public class SymfonyPhpReferenceContributor extends PsiReferenceContributor {
3939
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\QueryBuilder", "update"),
4040
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\QueryBuilder", "delete"),
4141
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\QueryBuilder", "from"),
42+
43+
// doctrine 2.5 methods
44+
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\Cache", "getEntityCacheRegion"),
45+
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\Cache", "containsEntity"),
46+
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\Cache", "evictEntity"),
47+
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\Cache", "evictEntityRegion"),
48+
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\Cache", "containsCollection"),
49+
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\Cache", "evictCollection"),
50+
new MethodMatcher.CallToSignature("\\Doctrine\\ORM\\Cache", "evictCollectionRegion"),
4251
};
4352

4453
public static MethodMatcher.CallToSignature[] TEMPLATE_SIGNATURES = new MethodMatcher.CallToSignature[] {

0 commit comments

Comments
 (0)