getValues(); if (empty($data['email'])) { $data['email'] = null; } foreach ($form->getDefaults() as $field => $value) { if (!array_key_exists($field, $data)) { $data[$field] = $value; } } $this->_getDataObj()->initFromForm($data); return $this; } }