mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 04:08:01 +08:00
fix
This commit is contained in:
parent
f155da24c6
commit
dd58716577
@ -47,7 +47,7 @@ class Model extends BaseModel
|
||||
*/
|
||||
public function getRepository()
|
||||
{
|
||||
if (! $this->repository || ! class_exists($this->repository) || ! interface_exists($this->repository)) {
|
||||
if (! $this->repository || ! class_exists($this->repository) && ! interface_exists($this->repository)) {
|
||||
throw new RuntimeException(sprintf('Cannot detect the repository of %s', static::class));
|
||||
}
|
||||
return $this->getContainer()->get($this->repository);
|
||||
|
Loading…
Reference in New Issue
Block a user