Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
Added todo
Browse files Browse the repository at this point in the history
  • Loading branch information
intel352 committed Apr 18, 2012
1 parent 72d202b commit 68d8d00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Document.php
Expand Up @@ -836,6 +836,9 @@ public function getAttributes($names = true) {
public function setAttributes($values, $safeOnly = true) { public function setAttributes($values, $safeOnly = true) {
if (!is_array($values)) if (!is_array($values))
return; return;
/**
* @todo Intersect keys from $values against attribute names, to properly mark attributes as modified
*/
$this->_modifiedAttributes += $safeOnly ? $this->getSafeAttributeNames() : $this->attributeNames(); $this->_modifiedAttributes += $safeOnly ? $this->getSafeAttributeNames() : $this->attributeNames();
return parent::setAttributes($values, $safeOnly); return parent::setAttributes($values, $safeOnly);
} }
Expand Down

0 comments on commit 68d8d00

Please sign in to comment.