Scaffold Generate

This issue has been created since 2021-01-06.

I got an error when create scaffold using cli, i have users table and i'm using phalcon scaffold users with cli

Fatal error: Declaration of Users::findFirst($parameters = NULL) must be compatible with Phalcon\Mvc\Model::findFirst($parameters = NULL): ?Phalcon\Mvc\ModelInterface

I also tried to create scaffold from webtools after enable in application

ankushkatiyar wrote this answer on 2021-01-08

via cli function generated like that public static function findFirst($parameters = null)
Need to change to public static function findFirst($parameters = null): \Phalcon\Mvc\ModelInterface
It will work fine

flyingangel wrote this answer on 2021-03-14

With question mark as it can return null ?\Phalcon\Mvc\ModelInterface. Please fix

Jeckerson wrote this answer on 2021-03-22

Fixed in #1492
Will be released in next patch version.

More Details About Repo
Owner Name phalcon
Repo Name phalcon-devtools
Full Name phalcon/phalcon-devtools
Language JavaScript
Created Date 2012-03-21
Updated Date 2022-08-01
Star Count 1311
Watcher Count 134
Fork Count 624
Issue Count 23

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Is there any way to detect print completion status 1 2021-09-15 2022-08-08
Add support for Common Lisp 3 2021-05-20 2022-04-25
SharePage java.lang.SecurityException: Permission Denial 0 2022-04-08 2022-05-26
I started guile-wm on GuixSD, but it failed to start 3 2020-01-08 2022-06-12
Some filters not working. 6 2021-02-02 2022-04-06
Check if Hetzner CentOS8 workaround is still needed 2 2021-11-22 2022-08-07
bring OPA back 0 2021-11-29 2021-12-18
yeelight 螢幕燈的情境燈可以加入支援嗎? 4 2021-11-20 2022-08-08
Patching fails on FreeBSD 2 2021-08-15 2022-07-21
If body is empty when pushing 'GET' is used and result is 405 instead of 200 2 2021-03-20 2022-07-23
ubuntu18.04 cmake error 0 2021-05-07 2022-07-24
Amazing work 0 2022-01-10 2022-01-04
Rewrite in rust 0 2022-01-09 2022-01-04
The best algorithm I've ever seen!! 1 2022-01-10 2022-07-16
Add disabled wallets to ChainInfo 2 2021-10-29 2022-06-30
In out label of text generation, it should be [:, -1:] 0 2022-05-01 2022-08-03
视觉定位基础上的直线飞行 1 2021-10-21 2022-01-15
Feat: Add support for Emoji Log commit standard 1 2021-07-21 2022-07-17
Action Center shows no icon on Windows Vista 2 2021-02-15 2022-08-04
Sound quality 5 2021-12-08 2022-01-13
Allow clients to configure caching headers 1 2022-03-23 2022-07-28
security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image 4 2021-08-23 2022-08-12
Create fun events for the community 2 2021-10-15 2022-07-20
TypeError: Cannot set properties of null (setting '__VUE_I18N__') 9 2022-01-10 2022-07-29
Repo name contains invalid characters 0 2021-04-27 2022-07-27
Keep navigation open 2 2022-01-11 2022-08-09
Implementation of IoU 18 2022-05-30 2022-07-28
Getting search result offsets in document 2 2021-01-07 2022-07-09
db exception "ERROR: invalid byte sequence for encoding "UTF8": 0x00" 3 2022-03-14 2022-08-03
[ARRDT] Dispose any refetch query on unmount 0 2022-01-20 2022-08-07
Metro Exodus stopped working yesterday 1 2022-01-05 2022-07-08
Crash report: `SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.` 1 2021-10-26 2022-01-20
QIIME2_DIVERSITY_ADONIS fails with test_full in 2.2.0 & 2.3.0 0 2022-04-04 2022-08-12
Make `0.14` CI green again 0 2021-11-23 2022-08-05
Canvas显示出错,Unhandled Exception: Exception: Invalid image dimensions. 4 2022-04-10 2022-08-05
[QUESTION] How to upload data to a longhorn persistent volume 16 2021-12-30 2022-08-07
Undelegating from an unbonded validator goes into unbonding delegation instead of instant 6 2022-03-10 2022-08-12
Write Webapp E2E with Cypress: "MM-T1279 Keyboard shortcuts menu item" 0 2021-10-22 2021-12-30
Package path ./browser is not exported from package 4 2022-04-20 2022-08-08
[BUG] Menu bar not showing up 2 2022-04-29 2022-08-10
v1.0.1 public_path usage breaks Lumen 2 2022-05-19 2022-08-10
Elasticsearch::Transport::Transport::Errors::NotFound in app/commands/solution/search_user_solutions.rb:24 1 2021-11-11 2022-08-11
Generate launch.json/task.json for both debug and release configurations 0 2022-04-13 2022-08-07
Airlock - researcher can upload data for a request 1 2022-05-12 2022-07-15
1.4.4. Verify Installation : openOCD - stlink.cfg does not exist [anymore?] 1 2021-01-04 2022-08-05
Decryption using DES in ECB mode with the EVP interface is failing 2 2022-08-11 2022-08-13
@decorators.timeout breaks @mock.patch 0 2021-04-08 2022-07-27
5.4.0 CDATA change breaks my parsing 3 2021-09-20 2022-08-05
Update SQL reference in user guide to cover all supported syntax 0 2022-08-09 2022-08-11
docs-bug(Google Maps): How do you load directions dynamically? 2 2022-03-11 2022-07-20