Skip to content

Commit

Permalink
Fix tablename/key mixing, fixes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
SvanteRichter committed Aug 10, 2016
1 parent 091c06b commit f73153d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TranslateExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@ function ($contentTables) use ($app) {
$prefix = $app['schema.prefix'];
$contentTypes = $app['config']->get('contenttypes');

foreach (array_keys($contentTypes) as $contentType) {
$contentTables[$contentType] = $app->share(function () use ($platform, $prefix, $config) {
foreach ($contentTypes as $contentType) {
$tableName = $contentType['tablename'];
$contentTables[$tableName] = $app->share(function () use ($platform, $prefix, $config) {
return new Storage\ContentTypeTable($platform, $prefix, $config);
});
}
Expand Down

0 comments on commit f73153d

Please sign in to comment.