1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/manual/docs/Working with objects - Component overview - Record - Getting object copy.php

7 lines
214 B
PHP
Raw Normal View History

2007-04-14 01:49:11 +04:00
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().
2007-04-14 01:49:11 +04:00
<code type="php">
$copy = $user->copy();
</code>