Following #10, if I understand the code right, the association should be on the foreign key, not the primary.
In your test it works, because the first user has the id 1 as the identity, but otherwise it's not able to find the record or it loads an identity of another account.
I'm not sure how to write a proper test for this though.
Hello,
Following #10, if I understand the code right, the association should be on the foreign key, not the primary.
In your test it works, because the first user has the id
1
as the identity, but otherwise it's not able to find the record or it loads an identity of another account.I'm not sure how to write a proper test for this though.