示例#1
0
文件: Node.php 项目: karwana/penelope
 public function delete()
 {
     $client_node = $this->getClientObject();
     // Remove the full text index.
     $index = new Neo4j\Index\NodeFulltextIndex($this->client, 'full_text');
     $index->remove($client_node);
     $index->save();
     // Orphan the node.
     $client_edges = $client_node->getRelationships();
     if ($client_edges) {
         foreach ($client_edges as $client_edge) {
             $client_edge->delete();
         }
     }
     parent::delete();
 }