Skip to content

Commit 644d792

Browse files
Updated the help note
1 parent 6e1396e commit 644d792

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/AppBundle/Controller/Admin/BlogController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ public function deleteAction(Request $request, Post $post)
177177

178178
$entityManager = $this->getDoctrine()->getManager();
179179

180-
// Delete related symfony_demo_post_tag entries. This is necessary for SQLite platform only,
181-
// you can remove it for another platform.
180+
// Delete the tags associated with this blog post. This is done automatically
181+
// by Doctrine, except for SQLite (the database used in this application)
182+
// because foreign key support is not enabled by default in SQLite
182183
$post->getTags()->clear();
183184

184185
$entityManager->remove($post);

0 commit comments

Comments
 (0)