Skip to content

Commit

Permalink
(fix): copy and merge are deprecated (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu authored May 20, 2021
1 parent 9541bbe commit 37a3116
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stubs/EntityManager.stub
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class EntityManager implements EntityManagerInterface
* @template T
* @phpstan-param T $entity
* @phpstan-return T
* @deprecated 2.7 This method is being removed from the ORM and won't have any replacement
*/
public function merge($entity);

Expand Down Expand Up @@ -51,6 +52,7 @@ class EntityManager implements EntityManagerInterface
* @phpstan-param T $entity
* @phpstan-param bool $deep
* @phpstan-return T
* @deprecated 2.7 This method is being removed from the ORM and won't have any replacement
*/
public function copy($entity, $deep = false);

Expand Down
1 change: 1 addition & 0 deletions stubs/EntityManagerInterface.stub
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ interface EntityManagerInterface extends ObjectManager
* @phpstan-param T $entity
* @phpstan-param bool $deep
* @phpstan-return T
* @deprecated 2.7 This method is being removed from the ORM and won't have any replacement
*/
public function copy($entity, $deep = false);

Expand Down

0 comments on commit 37a3116

Please # to comment.