src/Validation/Laravel/DoctrinePresenceVerifier.php
protected function getEntityManager() {
        if($this->entities === null) {
            $callable = $this->factory;
            $this->entities = $callable();
        }

        return $this->entities;
    }
protected function getEntityManager() {
        if($this->entities === null) {
            $callable = $this->factory;
            $this->entities = $callable();
        }

        return $this->entities;
    }
Returns the EntityManager, loading it if it hasn't been created yet.

@return \Doctrine\ORM\EntityManagerInterface