In $entity variable, there is an object of same type as $other_address, but with all field values filled in.
I want to set all fields in $other_address object to hav
$A = $em->find('Some\Entity',1); $B = clone $A; $em->persist($B); $em->flush();
if you merge it will update the entity, best you use persist() it will duplicate the entire row and add auto incremented primary key
merge
persist()