Skip to content

Commit

Permalink
Removed Model::reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
SidRoberts committed Aug 16, 2017
1 parent a994ee1 commit 5fc138b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-4.0.md
Expand Up @@ -3,3 +3,4 @@
- Response headers and cookies are no longer prematurely sent [#12378](https://github.com/phalcon/cphalcon/pull/12378)
- You can no longer assign data to models whilst saving them [#12317](https://github.com/phalcon/cphalcon/issues/12317)
- `ModelManager::load()` no longer reuses already initialized models [#12317](https://github.com/phalcon/cphalcon/issues/12317)
- Removed `Model::reset()` [#12317](https://github.com/phalcon/cphalcon/issues/12317)
9 changes: 0 additions & 9 deletions phalcon/mvc/model.zep
Expand Up @@ -4769,13 +4769,4 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface
globals_set("orm.disable_assign_setters", disableAssignSetters);
}
}

/**
* Reset a model instance data
*/
public function reset()
{
let this->_uniqueParams = null;
let this->_snapshot = null;
}
}
5 changes: 0 additions & 5 deletions phalcon/mvc/modelinterface.zep
Expand Up @@ -303,9 +303,4 @@ interface ModelInterface
* @param array columnMap
*/
public function setSnapshotData(array! data, columnMap = null);

/**
* Reset a model instance data
*/
public function reset();
}

0 comments on commit 5fc138b

Please sign in to comment.