Closed (fixed)
Project:
Scald: Media Management made easy
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2013 at 08:45 UTC
Updated:
21 Mar 2014 at 13:30 UTC
Jump to comment: Most recent
Comments
Comment #1
jcisio commentedI haven't tested, but it should work with Migrate Extras (so that you can use arbitrary entity in the destination). Could you share your code?
Comment #2
huskey786 commentedHave run into a similar issue, trying to create an entity but to no avail.
When using dpm() around $entity it is returning empty so it is not creating the actual entity. Have also tried removing the 'entity_metadata_wrapper' and attempted to create my image that way. Is there any way to use entity_create() or is Migrate Extras the only way to go?
Comment #3
gifad commentedYou can have a look at
function scald_dailymotion_direct_import()
for a straightforward working sample code
Comment #4
jcisio commentedCommitted 8a1c1ce for better Entity API integration. Now you can use something like this (don't forget the "provider" property):
Comment #5
huskey786 commentedWill check out the dailymotion sample code and will see if i can get it working from that.
jcisio, the entity_create code that you have pasted above returns an error as follows. Have also tried changing some of the other settings but am receiving the same results.
Invalid data value given. Be sure it matches the required data type and format.**Nevermind had to change the value of the file load id to match files already uploaded. Works, thanks.
Comment #6
huskey786 commentedNevermind had to change the value of the file load id to match files already uploaded. Works, thanks.
Comment #8
anagp commentedI am in the same situation as bjalford was. I am trying to migrate create an atom as part of a migration. I am using migrate_extras as explained in Migration from other solutions. Both solutions (the one explained here and the one in migrate_extras. Use the Entity API method entity_create, however this method is not returning a new entity, it is returning false. Any idea what could be the cause?
This is the code I am using to call it.
And this is the code of the entity_create method in the Entity API (entity.module)
Comment #9
anagp commentedThe problem in #8 was solved by updating to the last dev version.