src/Common/Model/Base.php
public function getBySlug($sSlug, array $aData = [])
    {
        if (!$this->tableSlugColumn) {
            throw new ModelException(static::class . '::getBySlug() Column variable not set.', 1);
        }

        return $this->getByColumn($this->tableSlugColumn, $sSlug, $aData);
    }
public function getBySlug($sSlug, array $aData = [])
    {
        if (!$this->tableSlugColumn) {
            throw new ModelException(static::class . '::getBySlug() Column variable not set.', 1);
        }

        return $this->getByColumn($this->tableSlugColumn, $sSlug, $aData);
    }
public function getBySlug ( $ sSlug , array $ aData = [ ] ) { if ( ! $ this -> tableSlugColumn ) { throw new ModelException ( static :: class . '::getBySlug() Column variable not set.' , 1 ) ; } return $ this -> getByColumn ( $ this -> tableSlugColumn , $ sSlug , $ aData ) ; }
Fetch an object by it's slug

@param string $sSlug The slug of the object to fetch
@param array  $aData Any data to pass to getCountCommon()

@return \stdClass
@throws ModelException
Fetch an object by it s slug