Merge pull request #123 from bamarni/patch-4
simplified interface check
This commit is contained in:
commit
106620e6dd
@ -40,7 +40,7 @@ proper quoting of parameters.
|
|||||||
public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
|
public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
|
||||||
{
|
{
|
||||||
// Check if the entity implements the LocalAware interface
|
// Check if the entity implements the LocalAware interface
|
||||||
if (!in_array("LocaleAware", $targetEntity->reflClass->getInterfaceNames())) {
|
if (!$targetEntity->reflClass->implementsInterface('LocaleAware')) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user