Browse Source

apply changes to db\AR -> redis\AR

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
172a9f19b3
  1. 4
      framework/yii/redis/ActiveRelation.php

4
framework/yii/redis/ActiveRelation.php

@ -254,7 +254,9 @@ class ActiveRelation extends ActiveQuery
// single key // single key
$attribute = reset($this->link); $attribute = reset($this->link);
foreach ($models as $model) { foreach ($models as $model) {
$values[] = $model[$attribute]; if (($value = $model[$attribute]) !== null) {
$values[] = $value;
}
} }
} else { } else {
// composite keys // composite keys

Loading…
Cancel
Save