Skip to content

Commit

Permalink
Merge pull request #1733 from doctrine/stof-patch-1
Browse files Browse the repository at this point in the history
Add enable_lazy_ghost_objects in the configuration reference
  • Loading branch information
stof authored Dec 4, 2023
2 parents 5a3a2c1 + dccb004 commit 4194459
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,9 @@ private function addOrmSection(ArrayNodeDefinition $node): void
})
->end()
->end()
->booleanNode('enable_lazy_ghost_objects')->defaultValue(! method_exists(ProxyFactory::class, 'resetUninitializedProxy'))
->booleanNode('enable_lazy_ghost_objects')
->defaultValue(! method_exists(ProxyFactory::class, 'resetUninitializedProxy'))
->info('Enables the new implementation of proxies based on lazy ghosts instead of using the legacy implementation')
->end()
->scalarNode('proxy_dir')->defaultValue('%kernel.cache_dir%/doctrine/orm/Proxies')->end()
->scalarNode('proxy_namespace')->defaultValue('Proxies')->end()
Expand Down
2 changes: 2 additions & 0 deletions Resources/doc/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ Configuration Reference
auto_generate_proxy_classes: false
proxy_dir: "%kernel.cache_dir%/doctrine/orm/Proxies"
proxy_namespace: Proxies
# Enables the new implementation of proxies based on lazy ghosts instead of using the legacy implementation
enable_lazy_ghost_objects: false
entity_managers:
Expand Down

0 comments on commit 4194459

Please sign in to comment.