Swoole\Model::exists PHP Method

exists() public method

检测是否存在数据,实际可以用count代替,0为false,>0为true
public exists ( $gets ) : boolean
$gets
return boolean
    function exists($gets)
    {
        $c = $this->count($gets);
        if ($c > 0) {
            return true;
        } else {
            return false;
        }
    }