fix: replace for() with from() in database Model

This commit is contained in:
Victor Westerlund 2025-11-01 16:35:27 +01:00
parent 1940d89352
commit 3dab5f061b
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -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,7 +75,7 @@
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)
->from($this->table)
->where($this->where)
->limit(1)
->select()
@ -103,7 +103,7 @@
$this->_row[$key] = $value;
return $this->db
->for($this->table)
->from($this->table)
->where($this->where)
->update([$key => $value]);
}