Skip to content

Commit

Permalink
Removed deprecated call and an unnessessary else block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Pustułka committed Jan 12, 2017
1 parent 8e50d36 commit 975a972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ORM/Behavior/TranslateBehavior.php
Expand Up @@ -429,13 +429,13 @@ public function locale($locale = null)
public function translationField($field)
{
$table = $this->_table;
$associationName = $table->alias() . '_' . $field . '_translation';
$associationName = $table->getAlias() . '_' . $field . '_translation';

if ($table->associations()->has($associationName)) {
return $associationName . '.content';
} else {
return $table->aliasField($field);
}

return $table->aliasField($field);
}

/**
Expand Down

0 comments on commit 975a972

Please sign in to comment.