Fixed bad merge on Model::bindModel().

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4390 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-02-01 18:45:38 +00:00
parent a83f2bf470
commit 67e582cc2f

View file

@ -521,10 +521,12 @@ class Model extends Overloadable {
* @param boolean $reset
* @return boolean Always true
*/
function bindModel($params) {
function bindModel($params, $reset = true) {
foreach($params as $assoc => $model) {
if($reset === true) {
$this->__backAssociation[$assoc] = $this->{$assoc};
}
foreach($model as $key => $value) {
$assocName = $key;