Browse Source

Merge pull request #98 from creocoder/code-style-fix

ActiveRelation code style fix
tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
f81223c455
  1. 2
      framework/db/ActiveRelation.php

2
framework/db/ActiveRelation.php

@ -266,7 +266,7 @@ class ActiveRelation extends ActiveQuery
{ {
$attributes = array_keys($this->link); $attributes = array_keys($this->link);
$values = array(); $values = array();
if (count($attributes) ===1) { if (count($attributes) === 1) {
// single key // single key
$attribute = reset($this->link); $attribute = reset($this->link);
foreach ($models as $model) { foreach ($models as $model) {

Loading…
Cancel
Save