title: How can i unlink file for removal in symfony2
body: <p>I a using this code for image removal when i delete the entity</p>
  
  <pre><code>  /**
       * @ORM\PostRemove()
       */
      public function removeUpload()
      {
          if ($this-&gt;filenameForRemove)
          {
              unlink ( $this-&gt;filenameForRemove );
          }
      }
  </code></pre>
  
  <p>But the problem is if i don't have the image there then it throws exception like this</p>
  
  <pre><code>Warning: unlink(/home/site/../../../../uploads/50343885699c5.jpeg) [&lt;a href='function.unlink'&gt;function.unlink&lt;/a&gt;]: No such file or directory i
  </code></pre>
  
  <p>Is there any way that if file is not there or directory is not there it should skip this step and still deletes the entity</p>