doctrine/doctrine2 — pull request #155 by goetas (2011-10-18 13:41:42+00:00)
Title: One-to-one relations and field used as association key

Right field population in one-to-one relations, if the field is used as association key.

If the associated entity has an association key, we cant use fieldNames metadata, but we have to use associationMappings metadata to identify the needed object.