File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,33 +121,4 @@ back on the ``__invoke()`` method.
121121
122122See also
123123https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#entity-listeners
124- for more info on entity listeners and the resolver required by Symfony.
125-
126- Lazy Entity Listeners
127- ---------------------
128-
129- You can use the ``lazy `` attribute on the tag to make sure the listener services
130- are only instantiated when they are actually used.
131-
132- .. configuration-block ::
133-
134- .. code-block :: yaml
135-
136- services :
137- App\UserListener :
138- tags :
139- - { name: doctrine.orm.entity_listener, lazy: true }
140-
141- .. code-block :: xml
142-
143- <?xml version =" 1.0" ?>
144-
145- <container xmlns =" http://symfony.com/schema/dic/services"
146- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" >
147-
148- <services >
149- <service id =" App\UserListener" >
150- <tag name =" doctrine.orm.entity_listener" event =" preUpdate" entity =" App\Entity\User" lazy =" true" />
151- </service >
152- </services >
153- </container >
124+ for more info on entity listeners and the resolver required by Symfony.
You can’t perform that action at this time.
0 commit comments