- Defined nullable adapter
This commit is contained in:
parent
1af0063203
commit
2a03789e7c
@ -31,7 +31,7 @@ class Repository implements RepositoryInterface
|
||||
|
||||
protected array $joined = [];
|
||||
|
||||
public function __construct(string $entity, string $alias = self::DEFAULT_ALIAS, ConnectionAdapter $adapter = null) {
|
||||
public function __construct(string $entity, string $alias = self::DEFAULT_ALIAS, ?ConnectionAdapter $adapter = null) {
|
||||
$this->entityClass = $entity;
|
||||
$this->alias = $alias;
|
||||
$this->entityResolver = Ulmus::resolveEntity($entity);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user