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

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

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

@param int   $iId   The ID of the object to fetch
@param mixed $aData Any data to pass to getCountCommon()

@return \stdClass|false
@throws ModelException
Fetch an object by it s ID