Automates the creation and configuration of Doctrine entity relationships within Symfony projects.
The Symfony Entity Relation Manager skill streamlines the process of linking Doctrine entities by providing standardized templates for ManyToOne, OneToMany, and ManyToMany relationships. It ensures that both the owning and inverse sides of a relationship are correctly implemented with appropriate ORM attributes, proper constructor initializations for collections, and all necessary getter and setter methods. This skill reduces manual boilerplate coding and minimizes errors in database mapping, concluding with automated schema updates to keep your database in sync with your models.
主な機能
01Generates standardized code for ManyToOne, OneToMany, and ManyToMany relations
02Configures Doctrine ORM attributes including join columns and cascade options
03Automates boilerplate for getters, setters, and collection adder/remover methods
04Manages bidirectional mapping consistency with mappedBy and inversedBy
05Provides integrated workflow for updating database schemas via dsu commands
060 GitHub stars
ユースケース
01Linking a new 'Comment' entity to an existing 'Post' entity using a ManyToOne relation
02Establishing a ManyToMany relationship between 'Users' and 'Roles' with a join table
03Setting up complex bidirectional parent-child collections in a business logic model