Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[Feature] influence on the type of joins #453

Closed
marcghorayeb opened this Issue · 2 comments

3 participants

@marcghorayeb

Hello,

After browsing through the code, I don't think you can actually influence on the type of JOINS that lithium does. It will always output a LEFT JOIN.

Is this something someone has already thought of ? Maybe it's already feasible on the data branch?

@nateabele
Owner

Yeah, possibly. Take a look at Query::_fromRelationship(). Perhaps relationships can have a 'query' key containing settings that get merged into the Query object here.

@marcghorayeb marcghorayeb referenced this issue from a commit in marcghorayeb/lithium
Marc Ghorayeb Let the user alter the join mode in model relationships (not just thr…
…ough the query class), fixes #453.
7916ee8
@marcghorayeb marcghorayeb referenced this issue from a commit in marcghorayeb/lithium
Marc Ghorayeb Let users influence the relationship mode in models (and not only thr…
…ought the Query class), fixes #453
ebad2c4
@davidpersson

Closing in favor of #1001.

@davidpersson davidpersson referenced this issue from a commit
Marc Ghorayeb Let users influence the relationship mode in models (and not only thr…
…ought the Query class), fixes #453
fcee343
@davidpersson davidpersson referenced this issue from a commit
Marc Ghorayeb Let users influence the relationship mode in models (and not only thr…
…ought the Query class), fixes #453
c8fa7e0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.