Swoole\Model::get PHP Method

get() public method

获取主键$primary_key为$object_id的一条记录对象(Record Object) 如果参数为空的话,则返回一条空白的Record,可以赋值,产生一条新的记录
public get ( $object_id, $where = '' ) : Record
$object_id
$where
return Record Object
    public function get($object_id = 0, $where = '')
    {
        return new Record($object_id, $this->db, $this->table, $this->primary, $where, $this->select);
    }