Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctrine file upload example uses dir -- caution added #3419

Merged

Conversation

cordoval
Copy link
Contributor

@cordoval cordoval commented Jan 4, 2014

Q A
Doc fix? yes
New docs? no
Applies to 2.3+
Fixed tickets #3363
License CC-ASA 3.0 Unported

Sent using Gush

.. caution::

Using lifecycle callbacks is a limited technique that has some drawbacks
but it is good enough to show the basic idea. If say you want to remove
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about remove but it is good enough to show the basic idea and just end the sentence after drawbacks.?

if you say -> if you want

@weaverryan
Copy link
Member

Ping @cordoval! :)

@cordoval
Copy link
Contributor Author

I will correct this now @weaverryan thanks, I will demo Gush usage in doing this 👶

@cordoval
Copy link
Contributor Author

~ gsh p:squash 3419                                             Luiss-MacBook-Pro-3 [21:16:36]
OUT > Fetching origin
ERR > From github.com:symfony/symfony-docs
   42c80d1..67b7bbd  2.3        -> origin/2.3
ERR >    bede4c3..5ba2227  2.4        -> origin/2.4
ERR >    6db5f23..c6ac96c  master     -> origin/master
ERR >  * [new branch]      remove-typo -> origin/remove-typo
OUT > Fetching cordoval
ERR > Already on '3363-doctrine-file-upload-example-uses-dir'
OUT > Your branch is up-to-date with 'cordoval/3363-doctrine-file-upload-example-uses-dir'.
OUT > [3363-doctrine-file-upload-example-uses-dir 1620ed8] 3363-doctrine-file-upload-example-uses-dir
 1 file changed, 9 insertions(+)
ERR > To git@github.com:cordoval/symfony-docs.git
ERR >  + b50519a...1620ed8 3363-doctrine-file-upload-example-uses-dir -> 3363-doctrine-file-upload-example-uses-dir (forced update)
OUT > Branch 3363-doctrine-file-upload-example-uses-dir set up to track remote branch 3363-doctrine-file-upload-example-uses-dir from cordoval.

👶

@cordoval
Copy link
Contributor Author

right back at ya @weaverryan pong 👶

Using lifecycle callbacks is a limited technique that has some drawbacks.
If you want to remove the hard coded ``__DIR__`` reference inside
the ``Document::getUploadRootDir()`` method, the best way is to start
using explicit :doc:`doctrine listeners </cookbook/doctrine/event_listeners_subscribers>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would terminate this sentence at the end of this line. Then you can continue on the following line with "There you will be able [...]"

weaverryan added a commit that referenced this pull request Jan 21, 2014
…ordoval)

This PR was merged into the 2.3 branch.

Discussion
----------

doctrine file upload example uses dir -- caution added

| Q             | A                   |
| ---           | ---                 |
| Doc fix?      | yes                 |
| New docs?     | no                  |
| Applies to    | 2.3+                |
| Fixed tickets | #3363               |
| License       | CC-ASA 3.0 Unported |

 Sent using [Gush](https://github.com/cordoval/gush)

Commits
-------

1620ed8 3363-doctrine-file-upload-example-uses-dir
@weaverryan weaverryan merged commit 1620ed8 into symfony:2.3 Jan 21, 2014
weaverryan added a commit that referenced this pull request Jan 21, 2014
@weaverryan
Copy link
Member

Thanks for the update @cordoval! Merged in :)

@cordoval cordoval deleted the 3363-doctrine-file-upload-example-uses-dir branch January 21, 2014 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants