$new = clone $old
which will result in an new object $new
with the same properties as $old
except that it doesn't have any primary keys set thus must be saved to the database to be persistent.It looks like you're new here. If you want to get involved, click one of these buttons!