title: How to cancel save an entity when stay in prePersist function
body: <p>I have one problem: in a process, I want to cancel saving an entity in prePersit function:</p>
  
  <pre><code>/**
   * @ORM\PrePersist
   */
  public function setTranslationsValue2()
  {
      if((null===$this-&gt;getContent())or($this-&gt;getContent()==''))
      {
          //wanna stop saving this item???
         return false;
      }
  }
  </code></pre>
  
  <p>At above function, I don't want to save this entity any more, and don't want to stop my process (the process still save another s)</p>