New issue

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

Cannot resolve attribute "Id' in the model #1380

Closed
michaelhanekom opened this Issue Oct 14, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@michaelhanekom

michaelhanekom commented Oct 14, 2013

Small bug in developer tools scaffolding - phalcon/templates/scaffold/no-forms/Controller.php line 73 incorrectly generates findFirstById method in editAction of controller

Changing the line in Controller.php from:
$singularVar$ = $className$::findFirstById($pkVar$);

to:
$singularVar$ = $className$::findFirstBy$pk$($pkVar$);

fixes the problem. Hope this helps.

Thank you for an awesome framework. Loving it!!!

@michaelhanekom

This comment has been minimized.

Show comment
Hide comment
@michaelhanekom

michaelhanekom Oct 14, 2013

Sorry everyone, have moved this issue to phalcon/phalcon-devtools - issue phalcon/phalcon-devtools#121

michaelhanekom commented Oct 14, 2013

Sorry everyone, have moved this issue to phalcon/phalcon-devtools - issue phalcon/phalcon-devtools#121

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 14, 2013

Could you please close it here then? 😄

ghost commented Oct 14, 2013

Could you please close it here then? 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment