public function transition(callable $cb)
    {
        $where = $this->where;

        $data = $this->get();

        if (call_user_func_array($cb, [$data]) === true) {
            $this->where = $where;
        }

        return $this;
    }
public function transition(callable $cb)
    {
        $where = $this->where;

        $data = $this->get();

        if (call_user_func_array($cb, [$data]) === true) {
            $this->where = $where;
        }

        return $this;
    }
public function transition ( callable $ cb ) { $ where = $ this -> where ; $ data = $ this -> get ( ) ; if ( call_user_func_array ( $ cb , [ $ data ] ) === true ) { $ this -> where = $ where ; } return $ this ; }
Start a transaction in the database.

@param  callable $cb
@return QueryBuilder
Start a transaction in the database .