BelongsTo assumes that the localKey will reference the foreignEntity's
primary key. If this is not the case, you probably want to use the
'hasOne' relationship instead.
public belongsTo ( EntityInterface $entity, $foreignEntity, $localKey ) | ||
$entity | EntityInterface |