Skip to content

Commit

Permalink
Set copy-method as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseException authored and lcobucci committed Sep 23, 2019
1 parent a3bcc7d commit 9c15979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/Doctrine/ORM/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,6 @@ public function merge($entity)

/**
* {@inheritDoc}
*
* @todo Implementation need. This is necessary since $e2 = clone $e1; throws an E_FATAL when access anything on $e:
* Fatal error: Maximum function nesting level of '100' reached, aborting!
*/
public function copy($entity, $deep = false)
{
Expand Down
2 changes: 2 additions & 0 deletions lib/Doctrine/ORM/EntityManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ public function close();
/**
* Creates a copy of the given entity. Can create a shallow or a deep copy.
*
* @deprecated method will be removed in 3.0
*
* @param object $entity The entity to copy.
* @param boolean $deep FALSE for a shallow copy, TRUE for a deep copy.
*
Expand Down

0 comments on commit 9c15979

Please sign in to comment.