symfony / symfony/maker-bundle
php bin/console make:crud cannot create relations between tables :: bug
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.4k
- Forks
- 427
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 20
Description
Entities contain relations (OneToMany, ManyToOne) and when running php bin/console make:crud it doesn't recognize relations. when trying to access the route /new it throws an error.
The view also doesn't return a form with related fields.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with php bin/console make:crud on entities using OneToMany and ManyToOne relations, then visit the generated /new route. Trace why the generated view omits related fields and errors, and consider the issue done when CRUD generation handles these relations and the new form loads with the related fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100