Commit 5d5280bf authored by dj3c1t's avatar dj3c1t

SourceManager : try getRepo

parent 21a24806
Pipeline #37 skipped
......@@ -24,7 +24,11 @@ class SourceManager {
public function __construct(Container $container) {
$this->container = $container;
$em = $this->container->get('doctrine')->getManager();
$this->sourceRepo = $em->getRepository("Dj3c1tSourceMLBundle:Source");
try {
$this->sourceRepo = $em->getRepository("Dj3c1tSourceMLBundle:Source");
}
catch (\Exception $e) {
}
$this->refreshUser();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment