Skip to content
Browse files

Fix for editable id columns

Provide the stored data in the function _entityConditions to get editable id columns
  • Loading branch information...
1 parent a27252b commit 301673084a9cce46c885f678cff98252aff5bc53 @tefra committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 data/model/Query.php
View
2 data/model/Query.php
@@ -520,7 +520,7 @@ protected function _entityConditions() {
if (!$this->_entity || !($model = $this->_config['model'])) {
return;
}
- $key = $model::key($this->_entity->data());
+ $key = $model::key($this->_entity->stored());
if (!$key && $this->_type != "create") {
throw new ConfigException('No matching primary key found.');

0 comments on commit 3016730

Please sign in to comment.
Something went wrong with that request. Please try again.