ZF-7844: SETNULL option not provied in onUpdate or onDelete statements

Description

If a reference map in zend db contains 'onDelete' => self::SET_NULL this is not executed in the database.

Comments

This was my quick fix: ZF 1.10.8 Zend_Db_Table_Abstract::_cascadeDelete() - line: 1190


                case self::SET_NULL:
                        $where = array();
                        $data = array();
                        
                        for ($i = 0; $i < count($map[self::COLUMNS]); ++$i) {
                            $col = $this->_db->foldCase($map[self::COLUMNS][$i]);
                            $refCol = $this->_db->foldCase($map[self::REF_COLUMNS][$i]);
                            $type = $this->_metadata[$col]['DATA_TYPE'];
                            $where[] = $this->_db->quoteInto(
                                $this->_db->quoteIdentifier($col, true) . ' = ?',
                                $primaryKey[$refCol], $type);
                                
                            $data[$col] = null;
                        }
                        
                        $rowsAffected += $this->update($data, $where);
                        break;

this option is also missing from _cascadeUpdate in version 1.11.11