FOF30\Model\DataModel::recordDataToDatabaseData PHP Method

recordDataToDatabaseData() public method

If you are using custom knownFields to cater for table JOINs you need to override this method and _remove_ the fields which do not belong to the table you are saving to. It's generally a bad idea using JOINs instead of relations. You have been warned!
public recordDataToDatabaseData ( ) : array
return array
    public function recordDataToDatabaseData()
    {
        $copy = array_merge($this->recordData);
        foreach ($copy as $name => $value) {
            $method = $this->container->inflector->camelize('set_' . $name . '_attribute');
            if (method_exists($this, $method)) {
                $copy[$name] = $this->{$method}($value);
            }
        }
        return $copy;
    }