logic_hook not work properly on import

Hello,
i’ve created an after_save logic hook which set the same user as for parent record.

This hook works well during editing or creating new record while during import not.

Prent module is DBGIT_Orders and the child is DBGIT_Items

the csv file is something like:

HEADER ->Item Code,Number of Packages,Number of Pieces,Weight(KG),Volume(CBM),Unit,Orders,Target Company
DATA->Item-0001008,1,50,5,1,UNITS,Order-0001,mycompany

The coe is something like:

$focus = new DBGIT_Items();
$focus->retrieve($bean->id);
if( $focus->load_relationship(‘dbgit_orders_dbgit_items’) ) {
foreach ($focus->dbgit_orders_dbgit_items->getBeans() as $order) {
$orderID = $order->id;
$OrderAssignUserId = $order->assigned_user_id;
}
if($OrderAssignUserId != $bean->assigned_user_id){
$GLOBALS[‘log’]->FATAL('PARENT ID: '.$orderID);
$GLOBALS[‘log’]->FATAL('ASSIGNED USER ID: '.$OrderAssignUserId);
$bean->assigned_user_id = $OrderAssignUserId;
}
$GLOBALS[‘log’]->FATAL(‘ASSIGNED USER ID IS ALREADY CORRECT!!!’);
}
$bean->save(false);

But importing $OrderID seem to be empty while during normal creation or editing has correct value.

Is there any difference?
Does needs any changing in code?

Thanks