public function getFieldMapping($entity)
    {
        $fields = $this->getPropertiesByType($entity, self::FIELD_CLASS);

        $mapping = [];
        foreach ($fields as $field) {
            $mapping[$field->getNameWithAlias()] = $field->name;
        }

        $id = $this->getIdentifier($entity);
        $mapping['id'] = $id->name;

        return $mapping;
    }
public function getFieldMapping($entity)
    {
        $fields = $this->getPropertiesByType($entity, self::FIELD_CLASS);

        $mapping = [];
        foreach ($fields as $field) {
            $mapping[$field->getNameWithAlias()] = $field->name;
        }

        $id = $this->getIdentifier($entity);
        $mapping['id'] = $id->name;

        return $mapping;
    }
public function getFieldMapping ( $ entity ) { $ fields = $ this -> getPropertiesByType ( $ entity , self :: FIELD_CLASS ) ; $ mapping = [ ] ; foreach ( $ fields as $ field ) { $ mapping [ $ field -> getNameWithAlias ( ) ] = $ field -> name ; } $ id = $ this -> getIdentifier ( $ entity ) ; $ mapping [ 'id' ] = $ id -> name ; return $ mapping ; }
returns all fields and field for idendification

@param object $entity

@return array
returns all fields and field for idendification