X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=vendor%2Fzf2biz%2FCustom%2FModel%2FEntity.php;h=05b926f182a039e5ce3968680f0f80dbff3f4408;hb=HEAD;hp=f261e5a4d43d2ca53189db7682ba1f21aa41149c;hpb=590d9e5f7f81b81a4a62fb0795e029ef91441e60;p=zf2.biz%2Fapplication_blanche.git diff --git a/vendor/zf2biz/Custom/Model/Entity.php b/vendor/zf2biz/Custom/Model/Entity.php index f261e5a..05b926f 100644 --- a/vendor/zf2biz/Custom/Model/Entity.php +++ b/vendor/zf2biz/Custom/Model/Entity.php @@ -14,7 +14,7 @@ class Entity implements InputFilterAwareInterface protected $inputFilter; - public function exchangeArray($data, $overwrite=true) + public function exchangeArray($data, $overwrite=false) { foreach($this->columns as $col) { if (array_key_exists($col, $data)) { @@ -77,8 +77,8 @@ class Entity implements InputFilterAwareInterface $inputFilter = new InputFilter; $factory = new InputFactory; - for ($this->getDefaultInputFilterArrays() as $params) { - $inputFilter->add($factory->createInput($params)) + foreach ($this->getDefaultInputFilterArrays() as $params) { + $inputFilter->add($factory->createInput($params)); } $this->inputFilter = $inputFilter;