public function isRegisteredEntity($entity)
    {
        if (!is_string($entity)) {
            $entity = get_class($entity);
        }

        return array_key_exists($entity, $this->entityClasses);
    }
public function isRegisteredEntity($entity)
    {
        if (!is_string($entity)) {
            $entity = get_class($entity);
        }

        return array_key_exists($entity, $this->entityClasses);
    }
public function isRegisteredEntity ( $ entity ) { if ( ! is_string ( $ entity ) ) { $ entity = get_class ( $ entity ) ; } return array_key_exists ( $ entity , $ this -> entityClasses ) ; }
Check if the entity is already registered.

@param string|Entity $entity

@return bool
Check if the entity is already registered .