public function findVendorForSlug($slug)
    {
        $criteria = Criteria::create()
            ->where(Criteria::expr()->eq('slug', $slug))
        ;

        return $this->getVendors()->matching($criteria)->first();
    }
public function findVendorForSlug($slug)
    {
        $criteria = Criteria::create()
            ->where(Criteria::expr()->eq('slug', $slug))
        ;

        return $this->getVendors()->matching($criteria)->first();
    }
public function findVendorForSlug ( $ slug ) { $ criteria = Criteria :: create ( ) -> where ( Criteria :: expr ( ) -> eq ( 'slug' , $ slug ) ) ; return $ this -> getVendors ( ) -> matching ( $ criteria ) -> first ( ) ; }
Find Vendor given slug

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

@return Vendor
Find Vendor given slug