Change snipConent entitie property to public
This commit is contained in:
@ -26,17 +26,16 @@ class SnipUpdateContentCommand extends Command
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
$io = new SymfonyStyle($input, $output);
|
||||
// $io = new SymfonyStyle($input, $output);
|
||||
|
||||
$qb = $this->snipContentRepository->createQueryBuilder('s');
|
||||
$qb->where('s.text IS NOT NULL');
|
||||
|
||||
$c = 0;
|
||||
/** @var SnipContent $snipContent */
|
||||
foreach ($qb->getQuery()->getResult() as $snipContent) {
|
||||
$text = $snipContent->getText();
|
||||
$text = $snipContent->text;
|
||||
$text = Lexer::reconstruct(Lexer::tokenize($text));
|
||||
$snipContent->setText($text);
|
||||
$snipContent->text = $text;
|
||||
$this->snipContentRepository->save($snipContent);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user