code: public function findOneByContentTypeIdInLastVersion($contentType)
      {
          $qa = $this->createAggregationQuery();
          $qa->match(array('contentTypeId' => $contentType));
          $qa->sort(array('updatedAt' => -1));
  
          return $this->singleHydrateAggregateQuery($qa);
      }
docs: @param string   $contentType
  
  @return ContentTypeInterface