1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/manual/docs/Working with objects - Component overview - Record - Getting object copy.php
2007-04-13 21:49:11 +00:00

7 lines
214 B
PHP

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().
<code type="php">
$copy = $user->copy();
</code>