Working with objects - Component overview - Record - Getting object copy.php 214 Bytes
Newer Older
hansbrix's avatar
hansbrix committed
1 2
Sometimes you may want to get a copy of your object (a new object with all properties copied).
Doctrine provides a simple method for this: Doctrine_Record::copy().
3

hansbrix's avatar
hansbrix committed
4 5 6
<code type="php">
$copy = $user->copy();
</code>