File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ on other common tasks (e.g. ``loadClassMetadata``, ``onClear``).
16
16
17
17
There are different ways to listen to these Doctrine events:
18
18
19
- * **Lifecycle callbacks **, they are defined as methods on the entity classes and
19
+ * **Lifecycle callbacks **, they are defined as public methods on the entity classes and
20
20
they are called when the events are triggered;
21
21
* **Lifecycle listeners and subscribers **, they are classes with callback
22
22
methods for one or more events and they are called for all entities;
@@ -46,7 +46,7 @@ to learn everything about them.
46
46
Doctrine Lifecycle Callbacks
47
47
----------------------------
48
48
49
- Lifecycle callbacks are defined as methods inside the entity you want to modify.
49
+ Lifecycle callbacks are defined as public methods inside the entity you want to modify.
50
50
For example, suppose you want to set a ``createdAt `` date column to the current
51
51
date, but only when the entity is first persisted (i.e. inserted). To do so,
52
52
define a callback for the ``prePersist `` Doctrine event:
You can’t perform that action at this time.
0 commit comments