mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #7997] Update Interface ObjectRepository newer Namespace #10756
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/7997
State: closed
Merged: No
The class
Doctrine\ORM\EntityRepositoryimplementsDoctrine\Common\Persistence\ObjectRepositorywhich itself is deprecated already since version 1.3 as its namespace changed. The interface itself hasn't changed and is emulated by providing a class alias to its new namespaced version at\Doctrine\Persistence\ObjectRepository.This makes type hinting with the new interface not possible. Therefore, and because its original namespace has been deprecated for quite some time,
Doctrine\ORM\EntityRepositoryshould be used.