title: Symfony2 Database Translation Loader isn't executed
body: <p>I have to implement my own translation loader. I've used the tutorial on:
  <a href="http://blog.elendev.com/development/php/symfony/use-a-database-as-translation-provider-in-symfony-2/" rel="nofollow">http://blog.elendev.com/development/php/symfony/use-a-database-as-translation-provider-in-symfony-2/</a>
  to implement my own translation loader.</p>
  
  <p>I don't get any error's by my code, but the load function of my Loader never gets executed. </p>
  
  <p>Is there any way to tell symfony which translation should be executed? </p>
  
  <p><strong>config.yml</strong></p>
  
  <pre><code>    translation.loader.db:
      class: Mysk\TranslationBundle\Services\DBLoader
      arguments: ["@doctrine.orm.entity_manager"]
      tags:
          - { name: translation.loader, alias: db}
  </code></pre>
  
  <p><strong>DBLoader.php</strong></p>
  
  <pre><code>class DBLoader implements LoaderInterface {
  
  private $transaltionRepository;
  private $languageRepository;
  
  /**
   * @param EntityManager $entityManager
   */
  public function __construct(EntityManager $entityManager){
      $this-&gt;transaltionRepository = $entityManager-&gt;getRepository("MyskTranslationBundle:LanguageTranslation");
      $this-&gt;languageRepository = $entityManager-&gt;getRepository("MyskTranslationBundle:Language");
      echo "yeah";
  }
  
  function load($resource, $locale, $domain = 'messages'){
      die();
      //Load on the db for the specified local
      $language = $this-&gt;languageRepository-&gt;getLanguage($locale);
      $translations = $this-&gt;transaltionRepository-&gt;getTranslations($language, $domain);
      $catalogue = new MessageCatalogue($locale);
  
      foreach($translations as $translation){
          $catalogue-&gt;set($translation-&gt;getLanguageToken()-&gt;getToken(), $translation-&gt;getTranslation(), $domain);
      }
  
      return $catalogue;
  }}
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Cheers
  Timo</p>