public function fromType(string $entityClass, string $tableName = null)
    {
        $this->from($this->orm->getEntityMapper($entityClass, $tableName));
    }
public function fromType(string $entityClass, string $tableName = null)
    {
        $this->from($this->orm->getEntityMapper($entityClass, $tableName));
    }
public function fromType ( string $ entityClass , string $ tableName = null ) { $ this -> from ( $ this -> orm -> getEntityMapper ( $ entityClass , $ tableName ) ) ; }
Defines the root entity to load the read model data from.

@param string      $entityClass
@param string|null $tableName

@return void
Defines the root entity to load the read model data from .