1
0
mirror of synced 2024-12-14 15:16:04 +03:00

Merge pull request #123 from bamarni/patch-4

simplified interface check
This commit is contained in:
Benjamin Eberlei 2012-11-24 02:23:55 -08:00
commit 106620e6dd

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