Copy whole field from one entity to another i want to copy a field from one entity to another while processing a rule.
my current code looks like this:

&lt;?php
    $entity_created-&gt;field_ort = $entity_fetched-&gt;field_ort;
?&gt;


but instead i get an error message: 

Notice: Trying to get property of non-object in eval() (Zeile 3 von /www/www/sites/all/modules/rules/modules/php.eval.inc(125) : eval()'d code).


so i found this site http://drupal.org/node/1000200 which tells me that i need to do this more like this:

&lt;?php
    $entity_created-&gt;field_ort['und'][0]['value'] = $entity_fetched-&gt;field_ort['und'][0]['value'];
?&gt;


but what about lists and other fields? is there a more generic approach? i need to copy about 5 or more fields.
That issue and the following code seems to have no bearing on the opening problem. Trying to get property of non-object, it literally means that $entity_fetched is not an object. Dump it into a file to see what it is.