1

I'm trying to display large number in dataGrid of SonataAdminBundle like this :
290200920181218

It's well displayed in my form but not in the dataGrid :

DataGrid Screenshot

I need to display it without the forcing a specific number format and I have no clue how to force that. There is no special sonataField type for this kind of number or arguments to pass.

EDIT (@Amira Bedhiafi)

Entity

/**
 * @ORM\Column(type="float")
 *
 * @var float
 */
private $paiementId;

Datagrid:

protected function configureListFields(ListMapper $listMapper) {
        $listMapper->add('paiementId', 'number', array('label' => 'Référence de paiement'))
        ;
    }
LedZelkin
  • 586
  • 1
  • 10
  • 24

1 Answers1

0

i didn't find a solution with the float type but in my case i can change for bigDecimal and now it work

/**
 * @ORM\Column(type="bigDecimal")
 *
 * @var float
 */
private $paiementId;
LedZelkin
  • 586
  • 1
  • 10
  • 24