We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Scaffold with select fields relations

Hi all

I'm trying to generate scaffold with phalcon tools. I have tables with enum fields and some other with foregin keys. I expected to have my forms generated with <select> fields for enums but it seems this option no longer works.

Checked in phalcon-tools/scripts/Phalcon/Builder/Scaffold.php - there are some variables that are responsible for this but they are just initialized empty and never set with any values:

$setParams = array(); $selectDefinition = array(); $relationField = '';

So, is there any way to make scaffold generate forms (add, edit) with select fields?



4.7k

Really? Nobody can help? I've been trying to get select box like it is in phalcon documentation (here with "status" field):