src/Forms/DataMappers/DataMapperManager.php
public function mapFromObjectToField($data, FieldTypeInterface $field)
    {
        if (! is_object($data)) {
            $this->triggerException();
        }

        $field->setValue(
            $this->propertyAccessor->getValue($data, $field->getBaseName())
        );
    }
public function mapFromObjectToField($data, FieldTypeInterface $field)
    {
        if (! is_object($data)) {
            $this->triggerException();
        }

        $field->setValue(
            $this->propertyAccessor->getValue($data, $field->getBaseName())
        );
    }
public function mapFromObjectToField ( $ data , FieldTypeInterface $ field ) { if ( ! is_object ( $ data ) ) { $ this -> triggerException ( ) ; } $ field -> setValue ( $ this -> propertyAccessor -> getValue ( $ data , $ field -> getBaseName ( ) ) ) ; }
Map data from object to field.

@param mixed              $data
@param FieldTypeInterface $field
Map data from object to field .