|
|
@ -93,10 +93,13 @@ class AttributeBehavior extends Behavior |
|
|
|
$attributes = (array) $this->attributes[$event->name]; |
|
|
|
$attributes = (array) $this->attributes[$event->name]; |
|
|
|
$value = $this->getValue($event); |
|
|
|
$value = $this->getValue($event); |
|
|
|
foreach ($attributes as $attribute) { |
|
|
|
foreach ($attributes as $attribute) { |
|
|
|
|
|
|
|
// ignore attribute names which are not string (e.g. when set by TimestampBehavior::updatedAtAttribute) |
|
|
|
|
|
|
|
if (is_string($attribute)) { |
|
|
|
$this->owner->$attribute = $value; |
|
|
|
$this->owner->$attribute = $value; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns the value of the current attributes. |
|
|
|
* Returns the value of the current attributes. |
|
|
|