Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
canni committed Feb 16, 2011
2 parents 1546150 + 5450a00 commit 5a95a9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion EMongoDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ public function search($caseSensitive = false)

$this->setDbCriteria($criteria);

return $this;
return new EMongoDocumentDataProvider($this);
}

/**
Expand Down
4 changes: 0 additions & 4 deletions EMongoSoftDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ public function __isset($name)
public function __unset($name)
{
if(array_key_exists($name, $this->softAttributes)) // Use of array_key_exists is mandatory !!!
{
unset($this->softAttributes[$name]);
$names = array_flip($this->_attributeNames);
unset($this->_attributeNames[$names[$name]]);
}
else
parent::__unset($name);
}
Expand Down

0 comments on commit 5a95a9f

Please sign in to comment.