Example #1
0
 /**
  * @return Language
  */
 public function getLanguage()
 {
     return $this->current->getLanguage();
 }
Example #2
0
 /**
  * @param Fluent $statement
  * @param $table
  */
 private function modifyStatement(Fluent $statement, $table)
 {
     $statement->select('t.*')->leftJoin('%n t', $this->mapper->getTranslationsTable($table))->on('t.%n = %n.%n', $this->mapper->getTranslationsColumn($table), $table, $this->mapper->getPrimaryKey($table))->where('language_id = %s', $this->language->getLanguage()->id);
 }