Add basket-element repository as a service

This commit is contained in:
Romain Neutron
2014-02-27 17:08:55 +01:00
parent a72d8ccabc
commit a6a2d3d268
10 changed files with 21 additions and 15 deletions

View File

@@ -466,7 +466,7 @@ class databox extends base
$this->app['EM']->remove($story);
}
foreach ($this->app['EM']->getRepository('Phraseanet:BasketElement')->findElementsByDatabox($this) as $element) {
foreach ($this->app['repo.basket-elements']->findElementsByDatabox($this) as $element) {
$this->app['EM']->remove($element);
}