mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00

committed by
Carsten Brandt

parent
d2dd232b6f
commit
6b6fa96319
@ -59,6 +59,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #10613: Fixed PostgreSQL Schema to return correct column names for unique indexes that have mixed case column names (cebe)
|
||||
- Bug #11322: Fixed incorrect error message in `yii\validators\UniqueValidator` for composite `targetAttribute` (PowerGamer1, silverfire, cebe)
|
||||
- Chg #11364: Updated jQuery dependency to include versions `1.12.*` (cebe)
|
||||
- Bug #11252: Use strict comparison on ActiveRecord::hasAttribute() to avoid cases where it returns true when a number is passed to it (Faryshta)
|
||||
|
||||
|
||||
2.0.8 April 28, 2016
|
||||
|
@ -424,7 +424,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
|
||||
*/
|
||||
public function hasAttribute($name)
|
||||
{
|
||||
return isset($this->_attributes[$name]) || in_array($name, $this->attributes());
|
||||
return isset($this->_attributes[$name]) || in_array($name, $this->attributes(), true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user