public function preRemove()
    {
        if ($this->lifecycleEventsActive && $this->deleted === false) {
            $this->resourceManager->deleteResource($this);
        }
    }
public function preRemove()
    {
        if ($this->lifecycleEventsActive && $this->deleted === false) {
            $this->resourceManager->deleteResource($this);
        }
    }
public function preRemove ( ) { if ( $ this -> lifecycleEventsActive && $ this -> deleted === false ) { $ this -> resourceManager -> deleteResource ( $ this ) ; } }
Doctrine lifecycle event callback which is triggered on "preRemove" events.
This method triggers the deletion of data related to this resource.

@return void
@ORM\PreRemove
Doctrine lifecycle event callback which is triggered on preRemove events . This method triggers the deletion of data related to this resource .