protected function findDeserializeObjects(array &$searchData)
{
$em = $this->getEntityManager();
foreach ($searchData as &$Conditions) {
if ($Conditions instanceof ArrayCollection) {
$Conditions = new ArrayCollection(array_map(function ($Entity) use($em) {
return $em->getRepository(get_class($Entity))->find($Entity->getId());
}, $Conditions->toArray()));
} elseif ($Conditions instanceof \Eccube\Entity\AbstractEntity) {
$Conditions = $em->getRepository(get_class($Conditions))->find($Conditions->getId());
}
}
}