I know about the existence of doctrine orm:generate:entities --generate-annotations=GENERATE-ANNOTATIONS , but the problem is that this command removes everything that is not related to Doctrine, for example, the Symfony\Validator annotations, are there any third-party tools that do similar to doctrine orm:generate:entities --generate-annotations=GENERATE-ANNOTATIONS task, but at the same time leaving the existing code completely, without deleting nothing?

  • And to generate and further inherit from these classes does not suit you? Another generator you can hardly find. If you only add yourself - ArchDemon

1 answer 1

In symfony2, you can use generate:doctrine:entities [путь к сущность] . My abstract of the assert class is not deleted.