@@ -117,7 +117,7 @@ nettrine.orm:
117117 metadataCache: <class-string|service>
118118
119119 secondLevelCache:
120- enable : <boolean>
120+ enabled : <boolean>
121121 cache: <class-string|service>
122122 logger: <class-string|service>
123123 regions:
@@ -160,7 +160,7 @@ nettrine.orm:
160160
161161By default, this extension will try to autoconfigure itself.
162162
163- - ** proxyDir** : ` %tempDir%/proxies ` , if ` %tempDir% ` is not defined, , you have to define it manually.
163+ - ** proxyDir** : ` %tempDir%/cache/doctrine/orm/ proxies ` , if ` %tempDir% ` is not defined, you have to define it manually.
164164- ** autoGenerateProxyClasses** : ` %debugMode% ` , if ` %debugMode% ` is not defined, you have to define it manually.
165165 - ` 0 ` means that the proxy classes must be generated manually.
166166 - ` 1 ` means that the proxy classes are generated automatically.
@@ -268,23 +268,23 @@ nettrine.orm:
268268 metadataCache: App\CacheService(%tempDir%/cache/doctrine/orm/metadata)
269269```
270270
271- Second level cache is a bit different. Be sure you know what you are doing, lear more in official [ Doctrine documentation] ( https://www.doctrine-project.org/projects/doctrine-orm/en/3.3/reference/second-level-cache.html ) .
271+ Second level cache is a bit different. Be sure you know what you are doing, learn more in official [ Doctrine documentation] ( https://www.doctrine-project.org/projects/doctrine-orm/en/3.3/reference/second-level-cache.html ) .
272272
273273``` neon
274274nettrine.orm:
275275 managers:
276276 default:
277- secondLevelCache:
278- enable : true
279- cache: App\CacheService(%tempDir%/cache/doctrine/orm/slc)
280- logger: App\LoggerService()
281- regions:
282- region1:
283- lifetime: 3600
284- lockLifetime: 60
285- region2:
286- lifetime: 86000
287- lockLifetime: 60
277+ secondLevelCache:
278+ enabled : true
279+ cache: App\CacheService(%tempDir%/cache/doctrine/orm/slc)
280+ logger: App\LoggerService()
281+ regions:
282+ region1:
283+ lifetime: 3600
284+ lockLifetime: 60
285+ region2:
286+ lifetime: 86000
287+ lockLifetime: 60
288288```
289289
290290If you like [ ` symfony/cache ` ] ( https://github.com/symfony/cache ) you can use it as well.
@@ -424,7 +424,8 @@ It's a good practice if you have separated modules in your applications.
424424
425425namespace App\Model\DI;
426426
427- use Nette\DI\CompilerExtension;use Nettrine\ORM\DI\Helpers\MappingHelper;
427+ use Nette\DI\CompilerExtension;
428+ use Nettrine\ORM\DI\Helpers\MappingHelper;
428429
429430class DoctrineMappingExtension extends CompilerExtension
430431{
@@ -971,7 +972,7 @@ extensions:
971972### Console
972973
973974> [ !TIP]
974- > Doctrine DBAL needs Symfony Console to work . You can use ` symfony/console ` or [ contributte/console] ( https://github.com/contributte/console ) .
975+ > Doctrine ORM console commands need Symfony Console . You can use ` symfony/console ` or [ contributte/console] ( https://github.com/contributte/console ) .
975976
976977``` bash
977978composer require contributte/console
@@ -984,7 +985,7 @@ extensions:
984985 nettrine.orm: Nettrine\ORM\DI\OrmExtension
985986```
986987
987- Since this moment when you type ` bin/console ` , there'll be registered commands from Doctrine DBAL .
988+ Since this moment when you type ` bin/console ` , there'll be registered commands from Doctrine ORM .
988989
989990![ Console Commands] ( https://raw.githubusercontent.com/nettrine/orm/master/.docs/assets/console.png )
990991
0 commit comments