Skip to content

Commit dbaf99f

Browse files
Update events.rst
1 parent 97411f5 commit dbaf99f

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

docs/en/reference/events.rst

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -383,32 +383,6 @@ Note that the methods set as lifecycle callbacks need to be public and,
383383
when using these annotations, you have to apply the
384384
``@HasLifecycleCallbacks`` marker annotation on the entity class.
385385

386-
.. code-block:: php
387-
388-
<?php
389-
// ...
390-
391-
class User
392-
{
393-
// ...
394-
395-
public function doStuffOnPrePersist()
396-
{
397-
// ...
398-
}
399-
400-
public function doOtherStuffOnPrePersist()
401-
{
402-
// ...
403-
}
404-
405-
public function doStuffOnPostPersist()
406-
{
407-
// ...
408-
}
409-
}
410-
411-
412386
Lifecycle Callbacks Event Argument
413387
----------------------------------
414388

0 commit comments

Comments
 (0)