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

Can I generate models from files?

Is there suport for YAML, XML ... files, to generate models/database/migration scripts? Developer tools doesn't support it..

Something like

VariantItem:
  tableName: variant_items
  columns:
    variantitemid:
      type: integer(4)
      primary: true
      autoincrement: true
    title:
      type: string(35)
      notnull: true
    description:
      type: string(100)
      notnull: false

as far as I know there is nothing like that in Phalcon. Only create models from database using developer tools: https://docs.phalcon.io/en/latest/reference/tools.html#generating-models