protected function generateDbData()
    {
        $dbData = [];
        foreach ($this->data as $name => $value) {
            if ($this->getDataSource($name) !== 'db') {
                $dbData[$name] = $this->getSetValue($name, $value);
            } else {
                $dbData[$name] = $value;
            }
        }

        return $dbData;
    }
protected function generateDbData()
    {
        $dbData = [];
        foreach ($this->data as $name => $value) {
            if ($this->getDataSource($name) !== 'db') {
                $dbData[$name] = $this->getSetValue($name, $value);
            } else {
                $dbData[$name] = $value;
            }
        }

        return $dbData;
    }
protected function generateDbData ( ) { $ dbData = [ ] ; foreach ( $ this -> data as $ name => $ value ) { if ( $ this -> getDataSource ( $ name ) !== 'db' ) { $ dbData [ $ name ] = $ this -> getSetValue ( $ name , $ value ) ; } else { $ dbData [ $ name ] = $ value ; } } return $ dbData ; }
Generates data for saving to database

@return array
Generates data for saving to database