Merge pull request #499 from romainneutron/fix-1309

[3.8] Fix #1309 : Stories can not be removed
This commit is contained in:
Romain Neutron
2013-07-11 15:27:55 -07:00
3 changed files with 8 additions and 8 deletions

View File

@@ -452,7 +452,7 @@ class databox extends base
$n+=50;
}
foreach ($this->app['EM']->getRepository('\Entities\StoryWZ')->findByDatabox($this) as $story) {
foreach ($this->app['EM']->getRepository('\Entities\StoryWZ')->findByDatabox($this->app, $this) as $story) {
$this->app['EM']->remove($story);
}