title: How to delete an entity that can be in an "OneToMany"-relationship
body: <p>I have two entities: a <code>Person</code> and an <code>Address</code>.</p>
  
  <ul>
  <li>a <code>Person</code> can have an <code>Address</code></li>
  <li>an <code>Address</code> can live self-sufficient from a <code>Person</code>.</li>
  </ul>
  
  <p>I'have created the relationship like this:</p>
  
  <p><strong>Address</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>/**
   * @ORM\OneToMany(targetEntity="Person", mappedBy="address", cascade={"detach"})
   */
  protected $persons;
  </code></pre>
  
  <p><strong>Person</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>/**
   * @ORM\ManyToOne(targetEntity="Address", inversedBy="persons", cascade={"detach"})
   * @ORM\JoinColumn(name="address_id", referencedColumnName="id")
   */
  protected $address;
  </code></pre>
  
  <p>When I now try to delete an <code>Address</code> that is related to a <code>Person</code> it results, of course, in an "<strong>Integrity constraint violation</strong>". How can I tell doctrine to simply <em>detach</em> the <code>Address</code> from the <code>Person</code>. If tried using <code>cascade={"detach"}</code> on both but nothing happens.</p>