File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -303,11 +303,11 @@ Using Lifecycle Callbacks
303
303
.. caution ::
304
304
305
305
Using lifecycle callbacks is a limited technique that has some drawbacks.
306
- If you want to remove the hard coded ``__DIR__ `` reference inside
306
+ If you want to remove the hardcoded ``__DIR__ `` reference inside
307
307
the ``Document::getUploadRootDir() `` method, the best way is to start
308
- using explicit :doc: `doctrine listeners </cookbook/doctrine/event_listeners_subscribers >`
309
- where you will be able to inject kernel parameters such as
310
- `` kernel.root_dir `` to be able to build absolute paths.
308
+ using explicit :doc: `doctrine listeners </cookbook/doctrine/event_listeners_subscribers >`.
309
+ There you will be able to inject kernel parameters such as `` kernel.root_dir ``
310
+ to be able to build absolute paths.
311
311
312
312
Even if this implementation works, it suffers from a major flaw: What if there
313
313
is a problem when the entity is persisted? The file would have already moved
You can’t perform that action at this time.
0 commit comments