/**
  * Calls the parent createQuery() method and replaces the created
  * query with an OverlayQuery.
  *
  * @return \Int\NewsSlideit\Persistence\OverlayQuery
  */
 public function createQuery()
 {
     $query = parent::createQuery();
     /** @noinspection PhpMethodParametersCountMismatchInspection */
     $overlayQuery = $this->objectManager->get(OverlayQuery::class, $this->objectType);
     $overlayQuery->setQuerySettings($query->getQuerySettings());
     return $overlayQuery;
 }