Comments (7)
@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.
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.
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.
By the way, I already updated to the latest fuel as well.
from orm.
The ORM result hydration has been refactored, could you check if this has also solved your problem?
from orm.
@WanWizard
Thank you very much for fixing this issue.
I always appreviate it.
I will check it out.
from orm.
Now I close this issue.
from orm.
Related Issues (20)
- Where statement omitted operator problem
- Orm\Model::from_array() don't work properly. HOT 2
- from_array() doesn't deal with related objects very well HOT 2
- Update at branch 1.8/master should be released HOT 4
- Model_Temporal: Multiple functions don't work when primary key is changed from 'id' HOT 1
- Error since last commit HOT 3
- Enhancement: table views in related models
- Orm remembers which fields were selected previously when it shouldn't HOT 9
- php 7.4 bag HOT 11
- [Bug report]I will report this bug in fuelPHP forum HOT 3
- help pls count relation HOT 1
- 1.9/dev - Relation condition use query's where instead of relation's on clause HOT 12
- relations multiple empty bug HOT 18
- Many to Many Relationships HOT 2
- creating new relation models, which should be same, with ->from_cache(false) HOT 3
- The solution for Issue #432 seems to be wrong. HOT 1
- Run Typing on default value if value is null HOT 1
- Cannot delete relations HOT 2
- Related conditions are applied to incorrect place in the query HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orm.