associations: added getTargetPrimaryKey() to ManyToOne and OneToOne