interchange / interchange6-schema

DBIC schema for Interchange 6
8 stars 7 forks source link

test needed to check left_join is set on belongs_to with nullable FK #146

Closed SysPete closed 9 years ago

SysPete commented 9 years ago

Just fixed one of these in Address in commit eff991e8415 but we need to make sure we don't have any others.

SysPete commented 9 years ago

Thanks to @murwiz for spotting the Address::state bug.

racke commented 9 years ago

Please give us the reason for the left join. I would like to add that to the docs/wiki.

racke commented 9 years ago

Ok, I found that in the commit message:

Since states_id FK column is nullable the relationship needs to use a left join rather than default inner in order for join/prefetch to work as expected.