Let\'s say I have entity $e. Is there any generic way to store it as another row, which would have the same entity data but another primary key?
$e
Why I n
I just do:
/** * __clone * * @return void */ public function __clone() { $this->id = null; }
More details here https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/cookbook/implementing-wakeup-or-clone.html