src/EntityProcessor/GetterSetterEntityProcessor.php
public function saveToEntity($entity, $formData, $limitFields = null)
    {
        foreach($formData as $field => $value) {
            $setter_name = "set".$this->dashesToCamelCase($field);

            if (($limitFields === null || in_array($field, $limitFields)) && method_exists($entity, $setter_name)) {
                $entity->$setter_name($value);
            }
        }
    }
public function saveToEntity($entity, $formData, $limitFields = null)
    {
        foreach($formData as $field => $value) {
            $setter_name = "set".$this->dashesToCamelCase($field);

            if (($limitFields === null || in_array($field, $limitFields)) && method_exists($entity, $setter_name)) {
                $entity->$setter_name($value);
            }
        }
    }
public function saveToEntity ( $ entity , $ formData , $ limitFields = null ) { foreach ( $ formData as $ field => $ value ) { $ setter_name = "set" . $ this -> dashesToCamelCase ( $ field ) ; if ( ( $ limitFields === null || in_array ( $ field , $ limitFields ) ) && method_exists ( $ entity , $ setter_name ) ) { $ entity -> $ setter_name ( $ value ) ; } } }
Save data to an entity using setter methods

@param $entity
@param $formData
@param null $limitFields
@return void
Save data to an entity using setter methods