I learned to do this with fixed values, eg:
@Annotation\Type("Zend\Form\Element\Select")
@Annotation\Options({"label":"Cidade"})
@Annotation\Attributes({"options":{"1":"São Paulo","2":"Rio de Janeiro"}})
However, how do I put these options to display data from a database table, such as cities table?
And in the case of a checkbox, would it be the same?