src/Mapper/BaseGroupedMapper.php
protected function addFieldToCurrentGroup($fieldName)
    {
        // Note this line must happen before the next line.
        // See https://github.com/sonata-project/SonataAdminBundle/pull/1351
        $currentGroup = $this->getCurrentGroupName();
        $groups = $this->getGroups();
        $groups[$currentGroup]['fields'][$fieldName] = $fieldName;
        $this->setGroups($groups);

        return $groups[$currentGroup];
    }
protected function addFieldToCurrentGroup($fieldName)
    {
        // Note this line must happen before the next line.
        // See https://github.com/sonata-project/SonataAdminBundle/pull/1351
        $currentGroup = $this->getCurrentGroupName();
        $groups = $this->getGroups();
        $groups[$currentGroup]['fields'][$fieldName] = $fieldName;
        $this->setGroups($groups);

        return $groups[$currentGroup];
    }
protected function addFieldToCurrentGroup ( $ fieldName ) { // Note this line must happen before the next line. // See https://github.com/sonata-project/SonataAdminBundle/pull/1351 $ currentGroup = $ this -> getCurrentGroupName ( ) ; $ groups = $ this -> getGroups ( ) ; $ groups [ $ currentGroup ] [ 'fields' ] [ $ fieldName ] = $ fieldName ; $ this -> setGroups ( $ groups ) ; return $ groups [ $ currentGroup ] ; }
Add the field name to the current group.

@param string $fieldName
Add the field name to the current group .