You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE TABLE `users` (
`name` varchar(255) NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
$user = new Users();
$user->name = $this->request->getPost("name", "string");
CREATE TABLE `users` (
`name` varchar(255) NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
$user = new Users();
$user->name = $this->request->getPost("name", "int");
Describe what you are trying to achieve and what goes wrong.
I'm just following documentation: https://docs.phalcon.io/4.0/en/devtools
issue:
the controller generated by scaffold are setting ->getPost("field","int") for all data type, even text.
phalcon
Phalcon is a full stack PHP framework, delivered as a PHP extension, offering lower resource consumption and high performance.
phalcon => enabled
Author => Phalcon Team and contributors
Version => 4.0.6
Build Date => Jul 28 2020 22:58:26
Powered by Zephir => Version 0.12.17-6724dbf
Directive => Local Value => Master Value
phalcon.db.escape_identifiers => On => On
phalcon.db.force_casting => Off => Off
phalcon.orm.case_insensitive_column_map => Off => Off
phalcon.orm.cast_last_insert_id_to_int => Off => Off
phalcon.orm.cast_on_hydrate => Off => Off
phalcon.orm.column_renaming => On => On
phalcon.orm.disable_assign_setters => Off => Off
phalcon.orm.enable_implicit_joins => On => On
phalcon.orm.enable_literals => On => On
phalcon.orm.events => On => On
phalcon.orm.exception_on_failed_save => Off => Off
phalcon.orm.exception_on_failed_metadata_save => On => On
phalcon.orm.ignore_unknown_columns => Off => Off
phalcon.orm.late_state_binding => Off => Off
phalcon.orm.not_null_validations => On => On
phalcon.orm.update_snapshot_on_save => On => On
phalcon.orm.virtual_foreign_keys => On => On
phalcon.warning.enable => On => On
Expected and Actual Behavior
I'm just following documentation: https://docs.phalcon.io/4.0/en/devtools
issue:
the controller generated by scaffold are setting ->getPost("field","int") for all data type, even text.
just follow the official guide https://docs.phalcon.io/4.0/en/devtools
Details
phalcon info
)php --ri phalcon
)php -v
)Operating System:
OS: Manjaro 20.0.3 Lysia
Kernel: x86_64 Linux 5.6.19-2-MANJARO
Server: Nginx | Apache | Other
official phalcon-devtools server
Other related info (Database, table schema):
MySQL
The text was updated successfully, but these errors were encountered: