Set foreign key from attribute for morphTo