Skip to content

Commit

Permalink
fixup! Added loaders and dumpers for nette database and Doctrine DBAL.
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Oct 17, 2015
1 parent 0f62fd7 commit 2c055a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Kdyby/Translation/Loader/NetteDbLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ protected function getTranslations($locale)
{
try {
return $this->db->table($this->config->getTableName())
->select($this->delimite($this->config->getKeyColumn()) . ' AS ' . $this->delimite('key') . ', ' . $this->delimite($this->config->getLocaleColumn()) . ' AS locale, ' . $this->delimite($this->config->getMessageColumn()) . ' AS message')
->select($this->delimite($this->config->getKeyColumn()) . ' AS ' . $this->delimite('key') . ', ' .
$this->delimite($this->config->getLocaleColumn()) . ' AS locale, ' .
$this->delimite($this->config->getMessageColumn()) . ' AS message')
->where($this->config->getLocaleColumn() . ' = ?', $locale)
->fetchAll();

Expand Down

0 comments on commit 2c055a8

Please sign in to comment.