Add user repository as a service

This commit is contained in:
Romain Neutron
2014-02-27 17:02:29 +01:00
parent ed8f98432d
commit 8f87e8b1c8
53 changed files with 127 additions and 123 deletions

View File

@@ -52,7 +52,7 @@ class record_orderElement extends record_adapter
public function get_order_master_name()
{
if ($this->order_master_id) {
$user = $this->app['manipulator.user']->getRepository()->find($this->order_master_id);
$user = $this->app['repo.users']->find($this->order_master_id);
return $user->getDisplayName();
}