ModelBundle/Repository/ContentTypeRepository.php
public function findOneByContentTypeIdInLastVersion($contentType)
    {
        $qa = $this->createAggregationQuery();
        $qa->match(array('contentTypeId' => $contentType));
        $qa->sort(array('updatedAt' => -1));

        return $this->singleHydrateAggregateQuery($qa);
    }
public function findOneByContentTypeIdInLastVersion($contentType)
    {
        $qa = $this->createAggregationQuery();
        $qa->match(array('contentTypeId' => $contentType));
        $qa->sort(array('updatedAt' => -1));

        return $this->singleHydrateAggregateQuery($qa);
    }
@param string   $contentType

@return ContentTypeInterface