-
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
I use Nettrine ORM in modular Nette applications and I defined entity mapping in DI extension, not in Nettrine config and suggest:
diff --git a/src/DI/OrmExtension.php b/src/DI/OrmExtension.php
index f123a4b..60bae22 100644
--- a/src/DI/OrmExtension.php
+++ b/src/DI/OrmExtension.php
@@ -128,7 +128,7 @@ final class OrmExtension extends CompilerExtension
'namespace' => Expect::string()->required(),
]),
Expect::string()
- )->required()->assert(fn ($input) => count($input) > 0, 'At least one mapping must be defined'),
+ ),
'defaultCache' => (clone $expectService),
'queryCache' => (clone $expectService),
'resultCache' => (clone $expectService),
Metadata
Metadata
Assignees
Labels
No labels