public function findVendorForSlug($slug)
    {
        return $this->em
            ->getRepository($this->vendorFqcn)
            ->findOneBy(array(
                'slug' => $slug,
                'organization' => $this->oh->getOrganization()
            ))
        ;
    }
public function findVendorForSlug($slug)
    {
        return $this->em
            ->getRepository($this->vendorFqcn)
            ->findOneBy(array(
                'slug' => $slug,
                'organization' => $this->oh->getOrganization()
            ))
        ;
    }
public function findVendorForSlug ( $ slug ) { return $ this -> em -> getRepository ( $ this -> vendorFqcn ) -> findOneBy ( array ( 'slug' => $ slug , 'organization' => $ this -> oh -> getOrganization ( ) ) ) ; }
Find Vendor for slug

@author Tom Haskins-Vaughan <tom@tomhv.uk>
@since  0.8.0

@param  string  $slug

@return Vendor
Find Vendor for slug