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

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

        return $this->getByColumn($this->tableTokenColumn, $sToken, $aData);
    }
public function getByToken ( $ sToken , array $ aData = [ ] ) { if ( ! $ this -> tableTokenColumn ) { throw new ModelException ( static :: class . '::getByToken() Column variable not set.' , 1 ) ; } return $ this -> getByColumn ( $ this -> tableTokenColumn , $ sToken , $ aData ) ; }
Fetch an object by its token

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

@return \stdClass|null
@throws ModelException if object property tableTokenColumn is not set
Fetch an object by its token