Active
Project:
Migrate Extras
Version:
7.x-2.x-dev
Component:
Entity API
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2012 at 06:41 UTC
Updated:
5 Aug 2012 at 20:21 UTC
I've got an entity type which has a db column that's a serialized array of data.
The Entity Info API lets me declare that as a 'struct' type property, and then declare the elements within that array as sub-properties.
It would be nice if these appeared as sub-fields in the Migrate destinations. I can get that part to happen, but I'm stumped as to how (and where!!) to actually copy the data in from the migrate row object to the new entity.
Comments
Comment #1
mikeryanMigrateDestinationEntityAPI::import()?
Comment #2
joachim commentedBut that's a monster that subclasses can't easily override, because it tackles both assembling the entity object and saving it.
Would prepare() be a better fit?
Comment #3
mikeryanSure, prepare() would do it.