Skip to content

Commit 4194459

Browse files
authored
Merge pull request #1733 from doctrine/stof-patch-1
Add enable_lazy_ghost_objects in the configuration reference
2 parents 5a3a2c1 + dccb004 commit 4194459

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,9 @@ private function addOrmSection(ArrayNodeDefinition $node): void
505505
})
506506
->end()
507507
->end()
508-
->booleanNode('enable_lazy_ghost_objects')->defaultValue(! method_exists(ProxyFactory::class, 'resetUninitializedProxy'))
508+
->booleanNode('enable_lazy_ghost_objects')
509+
->defaultValue(! method_exists(ProxyFactory::class, 'resetUninitializedProxy'))
510+
->info('Enables the new implementation of proxies based on lazy ghosts instead of using the legacy implementation')
509511
->end()
510512
->scalarNode('proxy_dir')->defaultValue('%kernel.cache_dir%/doctrine/orm/Proxies')->end()
511513
->scalarNode('proxy_namespace')->defaultValue('Proxies')->end()

Resources/doc/configuration.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ Configuration Reference
219219
auto_generate_proxy_classes: false
220220
proxy_dir: "%kernel.cache_dir%/doctrine/orm/Proxies"
221221
proxy_namespace: Proxies
222+
# Enables the new implementation of proxies based on lazy ghosts instead of using the legacy implementation
223+
enable_lazy_ghost_objects: false
222224
223225
entity_managers:
224226

0 commit comments

Comments
 (0)