Skip to content

Commit

Permalink
Config for the model field value
Browse files Browse the repository at this point in the history
  • Loading branch information
uniquexor committed Dec 10, 2014
1 parent 2f16e0c commit a923647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Behavior/TranslateBehavior.php
Expand Up @@ -127,7 +127,7 @@ public function setupFieldAssociations($fields, $table, $model) {
$this->_table->hasMany($table, [
'foreignKey' => 'foreign_key',
'strategy' => 'subquery',
'conditions' => ["$table.model" => $alias],
'conditions' => ["$table.model" => $model],
'propertyName' => '_i18n',
'dependent' => true
]);
Expand Down

0 comments on commit a923647

Please sign in to comment.