src/DatabaseActiveRecord/ActiveRecordModel.php
public function findById($id = null)
    {
        $id = $id ?: $this->{$this->tableIdColumn};
        return $this->findWhere("{$this->tableIdColumn} = ?", $id);
    }
public function findById($id = null)
    {
        $id = $id ?: $this->{$this->tableIdColumn};
        return $this->findWhere("{$this->tableIdColumn} = ?", $id);
    }
Find and return first object by its tableIdColumn and use
its data to populate this instance.

@param integer $id to find or use $this->{$this->tableIdColumn}
as default.

@return this