It gives a reference.
You can test this by making two type “A” things
Give them both the same type “B” thing.
Then change type “B”s value in the database and that change will be reflected to in both type “A” things.