src/EntityRepositoryTrait.php
public function min($column)
    {
        $qb = $this->createQueryBuilder();

        $qb->select(sprintf('MIN(%s) AS min_%s', $qb->alias($column), $column));

        return $qb->fetchSingleScalar();
    }
public function min($column)
    {
        $qb = $this->createQueryBuilder();

        $qb->select(sprintf('MIN(%s) AS min_%s', $qb->alias($column), $column));

        return $qb->fetchSingleScalar();
    }
Retrieve the minimum value of a given column..

@param string $column

@return mixed
@throws \ReflectionException
@throws \Doctrine\ORM\NonUniqueResultException
@throws \Doctrine\ORM\NoResultException
@throws \Xloit\Bridge\Doctrine\ORM\Exception\InvalidArgumentException