public function addEntityManager(EntityManagerInterface $em)
    {
        if (!in_array($em, $this->entityManagers, true)) {
            $this->entityManagers[] = $em;
        }

        return $this;
    }