Provides abstract class for custom repositories that do not inherit from original orm Repository.
Contains all most-necessary methods to simplify code in the custom repository.
All methods are protected thus not exposed and it allows to create encapsulated custom repository.
已被弃用
use Repository.extend function to create a custom repository
Gets the original ORM repository for the entity that is managed by this repository.
If current repository does not manage any entity, then exception will be thrown.
Gets the original ORM tree repository for the entity that is managed by this repository.
If current repository does not manage any entity, then exception will be thrown.
Creates a new query builder for the repository's entity that can be used to build a SQL query.
If current repository does not manage any entity, then exception will be thrown.
Provides abstract class for custom repositories that do not inherit from original orm Repository. Contains all most-necessary methods to simplify code in the custom repository. All methods are protected thus not exposed and it allows to create encapsulated custom repository.
已被弃用
use Repository.extend function to create a custom repository