title: Copy a Doctrine object with all relations
body: <p>I want to copy a record with all his relations.</p>
  
  <p>I'm trying with:</p>
  
  <pre><code>$o = Doctrine::getTable('Table')-&gt;Find(x); 
  $copy = $object-&gt;copy();
  $relations = $o-&gt;getRelations();
  
  foreach ($relations as $name =&gt; $relation) {
    $copy-&gt;$relation = $object-&gt;$relation-&gt;copy();
  } 
  
  $copy-&gt;save();
  </code></pre>
  
  <p>This code doesn't works, but I think it's on the way.</p>