Problem Executing Campaign Actions

Hi folk, I am experiencing an issue trigging my campaign.



_________________________ Code ___



try {

$args = array(‘console’, ‘mautic:campaigns:trigger’, ‘–env=prod’, ‘–no-debug’);

$input = new ArgvInput($args);

$output = new BufferedOutput();



$kernel = new AppKernel(‘prod’, false);

$application = new Application($kernel);

$application->setAutoExit(false);

$result = $application->run($input, $output);



echo “

Execute Campaign Actions

”;

echo “
n”.$output->fetch().’
’;



}catch(Exception $exception) {



echo $exception->getMessage();



}

_________________________ Response




Triggering events for campaign 1

Triggering first level events

4 total events(s) to be processed in batches of 100



[DoctrineORM RMException]



Entity of type MauticCampaignBundleEntityLeadEventLog has identity through a foreign entity MauticLeadBundleEntityLead, however this entity has no identity itself. You have to call EntityManager#persist() on the related entity and make sure that an identifier was generated before trying to persist ‘MauticCampaignBundleEntityLeadEventLog’. In case of Post Insert ID Generation (such as MySQL Auto-Increment or PostgreSQL SERIAL) this means you have to call EntityManager#flush() between both persist operations.



mautic:campaigns:trigger [-i|–campaign-id[="…"]] [-l|–batch-limit[="…"]] [-m|–max-events[="…"]] [-f|–force]



______________________________________________________



Any guess how to fix or what is causing?

Hi folk, I am experiencing an issue trigging my campaign.

_________________________ Code ________________________

try {
$args = array(‘console’, ‘mautic:campaigns:trigger’, ‘–env=prod’, ‘–no-debug’);
$input = new ArgvInput($args);
$output = new BufferedOutput();

$kernel      = new AppKernel('prod', false);
$application = new Application($kernel);
$application->setAutoExit(false);
$result = $application->run($input, $output);

echo "<h2>Execute Campaign Actions</h2>";
echo "<pre>n".$output->fetch().'</pre>';

}catch(Exception $exception) {

echo $exception->getMessage();

}
_________________________ Response_____________________

Triggering events for campaign 1
Triggering first level events
4 total events(s) to be processed in batches of 100

[DoctrineORM RMException]

Entity of type MauticCampaignBundleEntityLeadEventLog has identity through a foreign entity MauticLeadBundleEntityLead, however this entity has no identity itself. You have to call EntityManager#persist() on the related entity and make sure that an identifier was generated before trying to persist ‘MauticCampaignBundleEntityLeadEventLog’. In case of Post Insert ID Generation (such as MySQL Auto-Increment or PostgreSQL SERIAL) this means you have to call EntityManager#flush() between both persist operations.

mautic:campaigns:trigger [-i|–campaign-id[="…"]] [–scheduled-only] [–negative-only] [-l|–batch-limit[="…"]] [-m|–max-events[="…"]] [-f|–force]


Any guess how to fix or what is causing?