I'm creating a custom bake template and I'd like to fetch DB table column type, and comments on a controller file location: Template\Bake\Element\Controller\index.twig, when I'm using code {% set fields = Bake.filterFields(fields, schema, modelObj) %}
which I've found on a file Template\Bake\Element\form.twig, it is returning errors showing fields, schema are NULL.
Can someone please assist how I can fetch DB table column type, and comments on a controller file? Since I want to add a FIELDS ARRAY in a recordSet generated by Bake command.
CakePHP v3.8.2 and Bake v1.x
Thanks.