diff --git a/src/Database/Model.php b/src/Database/Model.php index 3a25932..96d9bb6 100644 --- a/src/Database/Model.php +++ b/src/Database/Model.php @@ -55,7 +55,7 @@ $this->_resolved = true; $this->_row = $this->db - ->for($this->table) + ->from($this->table) ->where($this->where) ->limit(1) ->select($this->columns) @@ -75,11 +75,11 @@ public bool $isset { // Returns bool if row is set or attempts to resolve and set if null get => $this->_isset ??= new Database() - ->for($this->table) - ->where($this->where) - ->limit(1) - ->select() - ->num_rows === 1; + ->from($this->table) + ->where($this->where) + ->limit(1) + ->select() + ->num_rows === 1; } /** @@ -103,7 +103,7 @@ $this->_row[$key] = $value; return $this->db - ->for($this->table) + ->from($this->table) ->where($this->where) ->update([$key => $value]); }