Skip to content

Commit f8ce557

Browse files
committed
Replace deprecated addEntity in Generator Command
1 parent 672b7f9 commit f8ce557

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Console/GeneratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ private function declareEntityInSharpConfiguration(string $providerClass, string
709709
$this->replaceFileContent(
710710
$providerClass,
711711
$search,
712-
$search.' ->addEntity(\''.$entityKey.'\', \\'.$entityPath.'::class)'.PHP_EOL
712+
$search.' ->declareEntity(\\'.$entityPath.'::class)'.PHP_EOL
713713
);
714714
}
715715

0 commit comments

Comments
 (0)