mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Add elasticsearch reindex events
This commit is contained in:

committed by
Mathieu Darse

parent
ad868dc70f
commit
a01bf29c5b
@@ -14,6 +14,8 @@ use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Alchemy\Phrasea\Command\Command;
|
||||
use Alchemy\Phrasea\Core\PhraseaEvents;
|
||||
use Alchemy\Phrasea\Core\Event\RecordEvent\ChangeMetadataEvent;
|
||||
|
||||
class module_console_fieldsMerge extends Command
|
||||
{
|
||||
@@ -196,7 +198,7 @@ class module_console_fieldsMerge extends Command
|
||||
]], true);
|
||||
}
|
||||
|
||||
$this->getService('phraseanet.SE')->updateRecord($record);
|
||||
$this->getService('dispatcher')->dispatch(PhraseaEvents::RECORD_CHANGE_METADATA, new ChangeMetadataEvent($record));
|
||||
|
||||
unset($record);
|
||||
}
|
||||
|
Reference in New Issue
Block a user