Closed romosan closed 1 year ago
I assume you have tested this using the 1.9-dev code?
Yes, latest version and various versions in-between.
Ok, I'll do some debugging, haven't bumped into this issue myself.
I've tested relations of different types, to 4 deep (so "A.B.C" on the root object).
Let me know if this addresses your issue too.
Yes, it does!
Thanks for the feedback.
At least since the commit 8483d217f402a39ecc06ebd8d4a771194edd9f29 (rewritten object hydration), second-degree relations don't seem to work propely. I am referring to something like
['related' => 'first.second']
where, in my case,first
is ahas_many
relation andsecond
abelongs_to
relation.This could be the same problem as #439 but I have opened a new issue because the old one is closed and the code has since changed. Judging by the current code, the second-degree relation gets added to the first-degree relations list, instead of a particular record. In
\Orm\Query::process_row
:Should be perhaps something like:
But please note that
$parent_pk
is not defined and I am not sure how it should be and whether that would be enough.