Skip to content
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

Use the model->columns() method to return className as Phalcon\Mvc\ model \Row #901

Open
sowork opened this issue May 31, 2019 · 1 comment
Milestone

Comments

@sowork
Copy link

sowork commented May 31, 2019

Phalcon\Mvc\Model\EagerLoading\Loader::__construct() $className: Method will not get the real model class

When I use the model cloumns method to restrict query columns, instead of returning the original model class, I return a Phalcon\Mvc\model\Row, which prevents me from preloading with the with method.

@sowork
Copy link
Author

sowork commented Jun 5, 2019

I think the second argument from the Loader::fromResultset() can pass the model name,I solved it this way

@Jeckerson Jeckerson added this to the 4.0.0 milestone Apr 10, 2020
@niden niden moved this to Backlog in Phalcon v5 Aug 25, 2022
@niden niden added this to Phalcon v5 Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants