cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[Bug] \Phalcon\Mvc\Model\Query->addFrom() disregarding "with" argument

Open kornerita opened this issue 9 years ago • 3 comments

Hi,

We can see in \Phalcon\Mvc\Model\Query here, that the with parameter is disregarded in the addFrom method, I believe than this line of code is missing (taken from the constructor where is not disregarded).

Regards, Federico.

kornerita avatar Aug 17 '17 18:08 kornerita

@kornerita Good catch! Thank you

sergeyklay avatar Oct 03 '17 05:10 sergeyklay

No problem, I found it just browsing code hehe.

kornerita avatar Oct 03 '17 13:10 kornerita

Long story short. This feature was introduced at Jun 1, 2015 (https://github.com/phalcon/cphalcon/commit/3e43192750367ae0343fbe42c65a97fd04b3444b) was removed at Aug 6, 2015 (https://github.com/phalcon/cphalcon/commit/3ca25046ff484aedb7c38ac5aa994f183cba2415). Actually this feature was never used in stable releases.

We will not add this feature into 3.x branch and most likely will refactor QueryBuilder in 4.x branch. Thus I just mark (#13109) this feature as deprecated to avoid misunderstandings for future developers.

To see team's opinion about Eager Loading refer to: https://github.com/phalcon/cphalcon/issues/1117 .

Thank you for the report, and for helping us make Phalcon better.

sergeyklay avatar Oct 03 '17 21:10 sergeyklay