protected function getId($tableName, $where = null)
    {
        $record = $this->getRecord($tableName, $where);
        return $record ? $record->id : null;
    }
protected function getId($tableName, $where = null)
    {
        $record = $this->getRecord($tableName, $where);
        return $record ? $record->id : null;
    }
protected function getId ( $ tableName , $ where = null ) { $ record = $ this -> getRecord ( $ tableName , $ where ) ; return $ record ? $ record -> id : null ; }
Returns id of random record from given table.
@param string $tableName
@return int
Returns id of random record from given table .