public function clearIdentityMapAndCaches($areYouSure)
{
if ($areYouSure !== self::I_KNOW_WHAT_I_AM_DOING) {
throw new LogicException('Use this method only if you are sure what are you doing.');
}
foreach ($this->getLoadedRepositories() as $repository) {
$repository->doClearIdentityMap($areYouSure);
}
}