public function preRemove(EventArgs $args)
    {
        $entity = $args->getEntity();
        if ($entity instanceof SakonninFile) {
           // VichUploader removes this property when it removes the file,
           // alas I need to store it somehow.
           $this->removes[] = $entity->getStoredAs();
        }
    }
public function preRemove(EventArgs $args)
    {
        $entity = $args->getEntity();
        if ($entity instanceof SakonninFile) {
           // VichUploader removes this property when it removes the file,
           // alas I need to store it somehow.
           $this->removes[] = $entity->getStoredAs();
        }
    }
public function preRemove ( EventArgs $ args ) { $ entity = $ args -> getEntity ( ) ; if ( $ entity instanceof SakonninFile ) { // VichUploader removes this property when it removes the file, // alas I need to store it somehow. $ this -> removes [ ] = $ entity -> getStoredAs ( ) ; } }
Ensures a proxy will be usable in the postRemove.

@param EventArgs $event The event.
Ensures a proxy will be usable in the postRemove .