symfony / symfony/maker-bundle

php bin/console make:crud cannot create relations between tables :: bug

Open
#401 6 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.