/** * Clears the SearchManager. All entities that are currently managed * by this EntityManager become detached. * * @param string $objectName if given, only entities of this type will get detached */ public function clear($objectName = null) { $this->unitOfWork->clear($objectName); }