Skip to content

Commit

Permalink
Fixing the explanation of the Doctrine-level cascade, which was expla…
Browse files Browse the repository at this point in the history
…ined in the opposite direction

Thanks to @dpfkg in the comments for pointing this out!
  • Loading branch information
weaverryan committed Sep 16, 2013
1 parent 37dd18a commit 99c3467
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions knpu/more-security.rst
Expand Up @@ -122,12 +122,14 @@ Another important option is ``cascade``::
*/
protected $owner;

Setting this to ``remove`` tells Doctrine to remove all related events when
a user is deleted. This is similar to the database-level cascade, except that
it happens at the Doctrine level. If this doesn't totally make sense yet,
don't worry young jedi - just be aware that these options exist. For more
details on all of this, see the `Working with Associations`_ section of Doctrine's
documentation.
Setting this to ``remove`` tells Doctrine to "cascade" the removal of an
Event down to the related User. In other words, when an Event id deleted,
that delete should "cascade" through this relationship and also remove the
User. This is similar to the database-level cascade, except that it happens
at the Doctrine level operates in the opposite direction. If this doesn't
totally make sense yet, don't worry young jedi - just be aware that these
options exist. For more details on all of this, see the `Working with Associations`_
section of Doctrine's documentation.

Head to the console to update the schema:

Expand Down

0 comments on commit 99c3467

Please sign in to comment.