1
0
mirror of synced 2025-01-19 06:51:40 +03:00

simplified interface check

This commit is contained in:
Bilal Amarni 2012-08-30 16:25:50 +03:00
parent 9ae1f804e1
commit 7c7118d883

View File

@ -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 "";
}