public function save()
 {
     $id = $this->id;
     //eval("\$table = " . get_class($this) . "::\$table;");
     //eval("\$pKey = " . get_class($this) . "::\$pKey;");
     $pKey = $this->getPKey();
     $table = $this->getTable();
     if (!$id) {
         $this->loaded = 0;
     }
     if ($this->loaded == 0) {
         $nextKey = $this->getNextId($table, $pKey);
         $this->setField($pKey, $nextKey);
         $this->id = $nextKey;
         LoadDriver::insert($table, $this->dbFields);
     } else {
         $updateFields = array();
         LoadDriver::update($table, $this->dbFields, array($pKey => $id));
     }
 }