public function remove($object)
    {
        // Intercept a second call for the same PersistentResource object because it might cause an endless loop caused by
        // the ResourceManager's deleteResource() method which also calls this remove() function:
        if (!$this->removedResources->contains($object)) {
            $this->removedResources->attach($object);
            parent::remove($object);
        }
    }
public function remove($object)
    {
        // Intercept a second call for the same PersistentResource object because it might cause an endless loop caused by
        // the ResourceManager's deleteResource() method which also calls this remove() function:
        if (!$this->removedResources->contains($object)) {
            $this->removedResources->attach($object);
            parent::remove($object);
        }
    }
public function remove ( $ object ) { // Intercept a second call for the same PersistentResource object because it might cause an endless loop caused by // the ResourceManager's deleteResource() method which also calls this remove() function: if ( ! $ this -> removedResources -> contains ( $ object ) ) { $ this -> removedResources -> attach ( $ object ) ; parent :: remove ( $ object ) ; } }
Removes a PersistentResource object from this repository

@param object $object
@return void
Removes a PersistentResource object from this repository