Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
Undo Document changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nielssp committed Jan 26, 2016
1 parent b8cb4e2 commit 2b4109b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions src/Core/Store/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ public function set($key, $value) {
if (isset($this->data[$key])) {
$oldValue = $this->data[$key];
}
if ($value instanceof Document) {
$value = $value->toArray();
}
if (isset($key) and isset($value) and $key !== '') {
$this->data[$key] = $value;
}
Expand Down Expand Up @@ -259,10 +256,6 @@ public function delete($key) {
public function get($key, $default = null) {
if (isset($this->data[$key])) {
$value = $this->data[$key];
if ($value instanceof Document) {
unset($this->data[$key]);
return $this->get($key, $default);
}
}
else {
if (isset($default))
Expand Down Expand Up @@ -327,10 +320,6 @@ public function offsetGet($key) {
if (!isset($this->data[$key]) or is_array($this->data[$key])) {
return $this->getSubset($key);
}
if ($this->data[$key] instanceof Document) {
unset($this->data[$key]);
return $this->getSubset($key);
}
return $this->data[$key];
}

Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* @var string Jivoo framework version string.
*/
const VERSION = '0.24.1';
const VERSION = '0.24.2';

/**
* @var string Absolute path to Jivoo source directory.
Expand Down

0 comments on commit 2b4109b

Please sign in to comment.