function islandora_batch_derivative_trigger_regenerate_metadata_batch($children, $mapping, AbstractObject $collection, $content_model)
the third argument is specified as an AbstractObject type. however, when doing by specific pids, the collection argument == None. It fails due to the AbstractObject requirement.
removing the AbstractObject static typing allows the same drush command to succeed. there may be a safer/better way to approach this problem, but this does work:
function islandora_batch_derivative_trigger_regenerate_metadata_batch($children, $mapping, $collection, $content_model)
specifically, line 170 in islandora_batch_derivative_trigger.drush.inc passes NULL to line 253 in /includes/batch.inc -- when line 253 requires that argument be of type AbstractObject.
In includes/batch.inc, there is:
function islandora_batch_derivative_trigger_regenerate_metadata_batch($children, $mapping, AbstractObject $collection, $content_model)
the third argument is specified as an AbstractObject type. however, when doing by specific pids, the collection argument == None. It fails due to the AbstractObject requirement.
removing the AbstractObject static typing allows the same drush command to succeed. there may be a safer/better way to approach this problem, but this does work:
function islandora_batch_derivative_trigger_regenerate_metadata_batch($children, $mapping, $collection, $content_model)