I'm creating a Sonata Admin page for an Entity (generated with Symfony CLI).
In this Entity I have 3 textfields and 1 checkbox(boolean). Everthing is well generated except the checkbox. The checkbox is strangly located and there is no label.
In the configureFormFields I defined the checkbox field as it:
->add("online",null, array('required' => false, "label" => "My label"))
And on the Entity I have:
/**
* @ORM\Column(name="online", type="boolean", nullable=false)
*/
private $online;
Here is a screenshot:
Is it a known problem? Have you got any solution?
composer update
), etc.? Are you running in dev environment with error reporting on? Did you inspect the HTML source code to see if there's anything odd? – Nic Wortel