From 54e87ed76a5c2f4f9a4dc5325460b8e0d6b0fc2b Mon Sep 17 00:00:00 2001
From: Cameron Tod <cameron.tod@gmail.com>
Date: Thu, 31 May 2012 17:58:53 +0100
Subject: [PATCH] Issue 1530744: Changed MigrateDestinationEntity::prepare()
 to alter entities by reference.

---
 plugins/destinations/entity.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/destinations/entity.inc b/plugins/destinations/entity.inc
index f3c7ab6..1950d43 100644
--- a/plugins/destinations/entity.inc
+++ b/plugins/destinations/entity.inc
@@ -121,7 +121,7 @@ abstract class MigrateDestinationEntity extends MigrateDestination {
    * @param $source_row
    *  Raw source data object - passed through to prepare handlers.
    */
-  public function prepare($entity, stdClass $source_row) {
+  public function prepare(&$entity, stdClass $source_row) {
     // Add source keys for debugging and identification of migrated data by hooks.
     /* TODO: Restore
     foreach ($migration->sourceKeyMap() as $field_name => $key_name) {
-- 
1.7.8.3

