Skip to content

Commit

Permalink
Another missed 'model' use
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Feb 28, 2015
1 parent 5b34706 commit bc82948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Behavior/TranslateBehavior.php
Expand Up @@ -265,7 +265,7 @@ public function beforeSave(Event $event, Entity $entity, ArrayObject $options)
$fields = array_keys($values);
$primaryKey = (array)$this->_table->primaryKey();
$key = $entity->get(current($primaryKey));
$model = $this->_table->alias();
$model = $this->_config['model'] ?: $this->_table->alias();

$preexistent = $this->_translationTable->find()
->select(['id', 'field'])
Expand Down

0 comments on commit bc82948

Please sign in to comment.