We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On DevTools V4-RC.1 With table:
CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` char(60) NOT NULL, `active` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD KEY `email` (`email`); ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; COMMIT;
Run:
phalcon scaffold --table-name users
app/controllers/UsersController.php
<?php declare(strict_types=1); namespace ; use Phalcon\Mvc\Model\Criteria; use Phalcon\Paginator\Adapter\Model as Paginator; use Users;
Expected
<?php declare(strict_types=1); use Phalcon\Mvc\Model\Criteria; use Phalcon\Paginator\Adapter\Model as Paginator;
Empty namespace should be removed. Same goes got User model (show's warning)
The text was updated successfully, but these errors were encountered:
#1400 - Fix generation controller without namespace param
796548a
#1400 - Fix generation model without namespace param
449277b
#1400 - Fix code style
e52be89
Merge pull request #1405 from phalcon/fix/#1400-empty-namespace-contr…
caabde2
…oller #1400 - Fix empty namespace for controllers and models
Fixed.
Sorry, something went wrong.
Jeckerson
No branches or pull requests
On DevTools V4-RC.1
With table:
Run:
app/controllers/UsersController.php
Expected
Empty namespace should be removed. Same goes got User model (show's warning)
The text was updated successfully, but these errors were encountered: