@liuggio extend the container and implement the `getObjectRepository` method that simply does `public function getObjectRepository($name) { return $this[$name]; }`