Fix #1309 : Stories can not be removed

This commit is contained in:
Romain Neutron
2013-07-11 19:06:59 +02:00
parent f444d4ed97
commit 2507e45c9f
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);
}