From 7c7118d8835252cd821b7ad113d11181859af092 Mon Sep 17 00:00:00 2001 From: Bilal Amarni Date: Thu, 30 Aug 2012 16:25:50 +0300 Subject: [PATCH] simplified interface check --- en/reference/filters.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/reference/filters.rst b/en/reference/filters.rst index ef8b36e52..abe789412 100644 --- a/en/reference/filters.rst +++ b/en/reference/filters.rst @@ -40,7 +40,7 @@ proper quoting of parameters. public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) { // Check if the entity implements the LocalAware interface - if (!in_array("LocaleAware", $targetEntity->reflClass->getInterfaceNames())) { + if (!$targetEntity->reflClass->implementsInterface('LocaleAware')) { return ""; }