LazyRecord\BaseModel::reload PHP Method

reload() public method

Relaod record data by primary key, parameter is optional if you've already defined the primary key column in this model.
public reload ( string $pkId = null )
$pkId string primary key name
    public function reload($pkId = null)
    {
        if ($pkId) {
            return $this->load($pkId);
        } elseif (null === $pkId && ($pk = static::PRIMARY_KEY)) {
            $pkId = $this->_data[$pk];
            return $this->load($pkId);
        } else {
            throw new PrimaryKeyNotFoundException('Primary key is not found, can not reload ' . get_class($this));
        }
    }