Giter Site home page Giter Site logo

Comments (7)

allgrowsm avatar allgrowsm commented on August 20, 2024 1

@WanWizard
Sorry for late response.
I have checked today and now it is working correctly.
Thank you very much for reafactoring.
I really appreciate it.

from orm.

WanWizard avatar WanWizard commented on August 20, 2024

Have you checkted the generated SQL using the debugger, and run that SQL directly? Does that produce the data you expect?

It would be interesting to know if the problem is in the query generator, or in the hydration of the result.

from orm.

allgrowsm avatar allgrowsm commented on August 20, 2024

@WanWizard

Thank you for reply :)
The generated SQL query is okay.
It joins the correct tables.

It seems like all loop has 1st loop data like following.

For example....

■1st loop result
ABC
123
■2nd loop result
EFG
456

ABC
123
■3d loop rsult
HIJK
78910

EEEE
2929

ABC
123

I am talking about following source code.

// This fetches wrong related data.
$model =Model_User::gerUserRelatedData();
foreach($model as $m)
{
 $a = array()
 foreach($m->user_a as $user_a)
 {
   $a[] = $user_a;
 }
 $b = array();
 foreach($m->user_b as $user_b)
 {
   $b[] = $user_b;
 }
  print_r($a);
  print_r($b);
}

from orm.

allgrowsm avatar allgrowsm commented on August 20, 2024

By the way, I already updated to the latest fuel as well.

from orm.

WanWizard avatar WanWizard commented on August 20, 2024

The ORM result hydration has been refactored, could you check if this has also solved your problem?

from orm.

allgrowsm avatar allgrowsm commented on August 20, 2024

@WanWizard
Thank you very much for fixing this issue.
I always appreviate it.
I will check it out.

from orm.

allgrowsm avatar allgrowsm commented on August 20, 2024

Now I close this issue.

from orm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.