PartKeepr\SetupBundle\Services\UnitSetupService::getSiPrefix PHP Method

getSiPrefix() protected method

Finds an SI Prefix by name.
protected getSiPrefix ( string $name ) : SiPrefix | null
$name string The SI Prefix name
return PartKeepr\SiPrefixBundle\Entity\SiPrefix | null
    protected function getSiPrefix($name)
    {
        $repository = $this->entityManager->getRepository('PartKeeprSiPrefixBundle:SiPrefix');
        return $repository->findOneBy(['prefix' => $name]);
    }