Skip to content

Commit b1cca61

Browse files
committed
Merge pull request #101 from symfony-cmf/fix_validation_issue
no longer force the locale to false on load if multilang is disabled
2 parents 9f7cab8 + f152c6f commit b1cca61

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Doctrine/Phpcr/NonTranslatableMetadataListener.php

-15
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function getSubscribedEvents()
3333
{
3434
return array(
3535
'loadClassMetadata',
36-
'postLoad',
3736
);
3837
}
3938

@@ -59,18 +58,4 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
5958
}
6059
}
6160
}
62-
63-
/**
64-
* We set the locale field to false so that other code can use the
65-
* information that translations are deactivated.
66-
*
67-
* @param LifecycleEventArgs $eventArgs
68-
*/
69-
public function postLoad(LifecycleEventArgs $eventArgs)
70-
{
71-
$object = $eventArgs->getObject();
72-
if ($object instanceof TranslatableInterface) {
73-
$object->setLocale(false);
74-
}
75-
}
7661
}

0 commit comments

Comments
 (0)