getRepositoryByClass and refactoring

This commit is contained in:
Yuri Kuznetsov
2022-06-25 16:17:30 +03:00
parent 645b7f4482
commit e08bf1b18d
2 changed files with 44 additions and 33 deletions
@@ -127,6 +127,8 @@ class RDBRepository implements Repository
* Get an entity. If ID is NULL, a new entity is returned.
*
* @return ?TEntity
*
* @deprecated Use `getById` and `getNew`.
*/
public function get(?string $id = null): ?Entity
{