Skip to content

Commit

Permalink
Fix for editable id columns
Browse files Browse the repository at this point in the history
Provide the stored data in the function _entityConditions to get editable id columns
  • Loading branch information
tefra committed Aug 12, 2012
1 parent a27252b commit 3016730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/model/Query.php
Expand Up @@ -520,7 +520,7 @@ protected function _entityConditions() {
if (!$this->_entity || !($model = $this->_config['model'])) { if (!$this->_entity || !($model = $this->_config['model'])) {
return; return;
} }
$key = $model::key($this->_entity->data()); $key = $model::key($this->_entity->stored());


if (!$key && $this->_type != "create") { if (!$key && $this->_type != "create") {
throw new ConfigException('No matching primary key found.'); throw new ConfigException('No matching primary key found.');
Expand Down

0 comments on commit 3016730

Please sign in to comment.