Created
December 21, 2016 18:49
-
-
Save tony-o/d19c6ab194370eb1872af5369d8e62ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $prof = $orm.search('nickl', { | |
'-join' => { | |
'-table' => 'profile', | |
'-type' => 'inner', | |
'-on' => { | |
'uid' => 'id', | |
}, | |
} | |
}); |
@Xliff - yea so the way that the internals work on that is that it translates 'uid' => 'DBORMID'
to profile.uid
and user.DBORMID
, respectively. So, it always takes the .key
to be the table to be joined, and the .value
for the parent table.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tony-o,
Given your example in the docs, you have the following:
That looks a little confusing because the way I am resolving the on part is"
Which doesn't make sense. Am I missing something?