Permalink
Browse files

Fix bug in KeyValueStore registration

  • Loading branch information...
1 parent b414386 commit 825d7efa461a6d682be2506a9d6368a280915411 @beberlei committed Jun 4, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 DependencyInjection/WindowsAzureDistributionExtension.php
@@ -85,11 +85,16 @@ protected function loadTable($config, $container)
));
$container->setDefinition('windows_azure_distribution.table.storage', $storage);
+ $configDef = new Definition('Doctrine\KeyValueStore\Configuration');
+ $configDef->addMethodCall('setMetadataCache', array(new Reference('windows_azure_distribution.table.cache')));
+ $configDef->addMethodCall('setMappingDriverImpl', array(new Reference('windows_azure_distribution.table.driver')));
+
+ $container->setDefinition('windows_azure_distribution.table.config', $configDef);
+
$em = new Definition('Doctrine\KeyValueStore\EntityManager');
$em->setArguments(array(
new Reference('windows_azure_distribution.table.storage'),
- new Reference('windows_azure_distribution.table.cache'),
- new Reference('windows_azure_distribution.table.driver'),
+ new Reference('windows_azure_distribution.table.config'),
));
$container->setDefinition('windows_azure_distribution.table.manager', $em);

0 comments on commit 825d7ef

Please sign in to comment.