Skip to content

BenjaminDev34/symfony-auto-groups-on-entity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Symfony Circular Relationships Serializer Groups (Symfony 7.0)

Problem Statement

Handling circular relationships in Symfony when using the serializer can be challenging. In this solution, each entity, once set up, will have a group linked to the entity and a group for each property when you want to include an entity with another linked.

Installation

  1. Copy the "doctrine" folder along with the template to the root of your Symfony project.
  2. Copy the custom command folder into the "src" directory of your Symfony project.

Usage

  • Run php bin/console make:entity for each entity. This will automatically add the necessary group to the entity.
  • Execute the command php bin/console app:add-groups-on-properties to scan the properties of your entities and add the required groups.

Version 1.0

This version introduces a solution for managing circular relationships in Symfony when using the serializer.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages