Fix association keys generation for `Relationship` and introduce `Relationship::foreignKeys()`.