Example #1
0
 /**
  * Moves a document to a table
  *
  * @param Table $table
  * @return $this
  */
 public function moveTo(Table $table)
 {
     $this->read();
     $this->flush();
     $this->setPath($table->getDocumentPath($this->getName()));
     $this->write([]);
     return $this;
 }