mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
CLI tool documentation shows complicated way of creating a HelperSet #6457
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gbirke on GitHub (May 4, 2020).
Hi,
The CLI setup section at https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/tools.html still shows how to manually create a HelperSet, while the introductory documentation at https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/configuration.html#setting-up-the-commandline-tool shows that you can just call
ConsoleRunner::createHelperSet($entityManager)I'd either remove all the detailed setup or put the short call to
ConsoleRunner::createHelperSet($entityManager);first.@SenseException commented on GitHub (May 4, 2020):
Yes, the occurrances of the direct usage of
HelperSetis from a time before 2.4. This is of course outdated by now. In #8002 we removed the references of an ORM version starting with the in the 2.8 branch and keep theConsoleRunnerin favour of theHelperSet.As your links point it out, there's still work to do. I suggest to adapt the documentation for the usage of
ConsoleRunnerin https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/tools.html. Do you like to create a PR for that?@gbirke commented on GitHub (May 5, 2020):
I'd be happy to provide a documentation patch. For version 2.8 or 2.7?
@SenseException commented on GitHub (May 5, 2020):
I'd say 2.8.
@beberlei commented on GitHub (Jul 5, 2020):
Fixed in #8130