Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function update($runValidation = true, $attributeNames = null)
 {
     $changedAttributes = $this->getDirtyAttributes($attributeNames);
     if (empty($changedAttributes)) {
         $this->afterSave(false, $changedAttributes);
         return 0;
     }
     return (bool) parent::update($runValidation, $attributeNames);
 }