public function load($id) { $this->id = $id; $this->data = DB::row($this->table, '*', $this->getIdCondition()); $this->exists = is_array($this->data); $this->unset_id_fields(); return $this; }
public function load($id) { $this->id = $id; $this->data = DB::row($this->table, '*', $this->getIdCondition()); $this->exists = is_array($this->data); $this->unset_id_fields(); return $this; }