public function buildMarshalMap($marshaller, $map, $options)
    {
        $bundle = !empty($options['bundle']) ? $options['bundle'] : null;
        $attrs = $this->_toolbox->attributes($bundle);
        $map = [];

        foreach ($attrs as $name => $info) {
            $map[$name] = function ($value, $entity) use ($info) {
                return $this->_toolbox->marshal($value, $info['type']);
            };
        }

        return $map;
    }
public function buildMarshalMap($marshaller, $map, $options)
    {
        $bundle = !empty($options['bundle']) ? $options['bundle'] : null;
        $attrs = $this->_toolbox->attributes($bundle);
        $map = [];

        foreach ($attrs as $name => $info) {
            $map[$name] = function ($value, $entity) use ($info) {
                return $this->_toolbox->marshal($value, $info['type']);
            };
        }

        return $map;
    }
public function buildMarshalMap ( $ marshaller , $ map , $ options ) { $ bundle = ! empty ( $ options [ 'bundle' ] ) ? $ options [ 'bundle' ] : null ; $ attrs = $ this -> _toolbox -> attributes ( $ bundle ) ; $ map = [ ] ; foreach ( $ attrs as $ name => $ info ) { $ map [ $ name ] = function ( $ value , $ entity ) use ( $ info ) { return $ this -> _toolbox -> marshal ( $ value , $ info [ 'type' ] ) ; } ; } return $ map ; }
Ensures that virtual properties are included in the marshalling process.

@param \Cake\ORM\Marhshaller $marshaller The marhshaller of the table the behavior is attached to.
@param array $map The property map being built.
@param array $options The options array used in the marshalling call.
@return array A map of `[property => callable]` of additional properties to marshal.
Ensures that virtual properties are included in the marshalling process .