DDC-896: Use PDepend for Code-Generation #1113

Closed
opened 2026-01-22 13:02:39 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 27, 2010).

Originally assigned to: @jwage on GitHub.

Jira issue originally created by user @beberlei:

Our current code-generation tool has many shortcomings and due to its hard to test nature also many (known and unknown) bugs, as well as high maintenance.

Since people are overusing this tool and I am sort of annoyed by how much time goes into this we should rewrite this in a two-step procedure:

  1. Move code into Common so we can share it between ORM, Mongo and CouchDB.
  2. Use PDepend to read an entities source file (it generates an AST) and modify the AST with the required changes.

This gives us the advantage of having to maintaining less code for this stuff.

Originally created by @doctrinebot on GitHub (Nov 27, 2010). Originally assigned to: @jwage on GitHub. Jira issue originally created by user @beberlei: Our current code-generation tool has many shortcomings and due to its hard to test nature also many (known and unknown) bugs, as well as high maintenance. Since people are overusing this tool and I am sort of annoyed by how much time goes into this we should rewrite this in a two-step procedure: 1. Move code into Common so we can share it between ORM, Mongo and CouchDB. 2. Use PDepend to read an entities source file (it generates an AST) and modify the AST with the required changes. This gives us the advantage of having to maintaining less code for this stuff.
admin added the Improvement label 2026-01-22 13:02:39 +01:00
admin closed this issue 2026-01-22 13:02:40 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1113