hydrate() public method

public hydrate ( $bool )
 /**
  * {@inheritdoc}
  */
 protected function getProductsSkus(Builder $qb, $identifierCode)
 {
     $results = $qb->hydrate(false)->getQuery()->execute()->toArray();
     $skus = [];
     foreach ($results as $result) {
         $skus[] = $result['normalizedData'][$identifierCode];
     }
     return $skus;
 }
 /**
  * Whether or not to hydrate the data to documents.
  *
  * @param bool $shouldRefresh
  * @return QueryProxy this instance
  */
 public function hydrate($shouldHydrate = true)
 {
     $this->queryChanged = true;
     return parent::hydrate($shouldHydrate);
 }