original_string: public function destroy()
      {
          // Delete from the persistence layer.
          $this->getDataSource()->destroy($this->id);
          // Remove from the registry.
          $this->getFactory()->unregisterEntity($this);
          // Done, garbage collection should do the rest.
      }
code: public function destroy()
      {
          // Delete from the persistence layer.
          $this->getDataSource()->destroy($this->id);
          // Remove from the registry.
          $this->getFactory()->unregisterEntity($this);
          // Done, garbage collection should do the rest.
      }
code_tokens: public function destroy ( ) { // Delete from the persistence layer. $ this -> getDataSource ( ) -> destroy ( $ this -> id ) ; // Remove from the registry. $ this -> getFactory ( ) -> unregisterEntity ( $ this ) ; // Done, garbage collection should do the rest. }
docstring: Destroys all copies of the object, even the persisted ones.
docstring_tokens: Destroys all copies of the object even the persisted ones .