Fix #1992

Change MysqlEntity setter so that it accepts entity values for xref and mref attributes.