Example #1
0
 /**
  * Executes drop or deleteTableData
  * @example
  * $p = new Person();
  * $p->drop()->yesImSure();
  */
 public function yesImSure()
 {
     if (isset($this->riskyQuery)) {
         $this->db->query($this->riskyQuery);
         if ($this->shouldCache("read")) {
             LudoDBCache::clearByClass(get_class($this));
             $json = new LudoDBCache();
             $json->deleteTableData()->yesImSure();
         }
         $this->riskyQuery = null;
     }
 }