public function update()
    {
        $s = new static();

        $where = "id = {$s::$ID}";

        return self::$db->update($s::$entity_table, $this->db_fields, $where);
    }
public function update()
    {
        $s = new static();

        $where = "id = {$s::$ID}";

        return self::$db->update($s::$entity_table, $this->db_fields, $where);
    }
public function update ( ) { $ s = new static ( ) ; $ where = "id = {$s::$ID}" ; return self :: $ db -> update ( $ s :: $ entity_table , $ this -> db_fields , $ where ) ; }
Update a record in the table
Update a record in the table