{"id":18849418,"url":"https://github.com/mick3diy/form-tests-with-collectiontype","last_synced_at":"2026-05-01T17:35:08.962Z","repository":{"id":199463276,"uuid":"483153532","full_name":"Mick3DIY/form-tests-with-CollectionType","owner":"Mick3DIY","description":"A simple Symfony project to test a User form with multiples roles","archived":false,"fork":false,"pushed_at":"2022-05-04T09:04:26.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T14:51:55.116Z","etag":null,"topics":["form","php","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mick3DIY.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-19T08:06:53.000Z","updated_at":"2022-05-02T11:48:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e71ed88-182c-41f5-9a4b-933c012417b2","html_url":"https://github.com/Mick3DIY/form-tests-with-CollectionType","commit_stats":null,"previous_names":["mick3diy/form-tests-with-collectiontype"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mick3DIY%2Fform-tests-with-CollectionType","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mick3DIY%2Fform-tests-with-CollectionType/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mick3DIY%2Fform-tests-with-CollectionType/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mick3DIY%2Fform-tests-with-CollectionType/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mick3DIY","download_url":"https://codeload.github.com/Mick3DIY/form-tests-with-CollectionType/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239786250,"owners_count":19696772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["form","php","symfony"],"created_at":"2024-11-08T03:19:40.641Z","updated_at":"2026-02-02T20:30:17.924Z","avatar_url":"https://github.com/Mick3DIY.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Symfony form tests with CollectionType, ChoiceType (for User roles)\n---------\nRequired :\n\n    - Composer 2.2.x\n    - php 8.x\n    - Symfony 5.4.x\n    - SQLite (for User fixture)\n\n- User Entity (src/Entity/User.php) :\n    - id, username, roles, password, email\n    - user roles : ROLE_USER, ROLE_ADMIN_APP, ROLE_ADMIN_PROJECT, ROLE_ADMIN\n\n\n- User fixture (src/DataFixtures/UserFixtures.php) :\n    - bin/console doctrine:fixture:load\n\n\n- Form class (src/Form/UserType.php) :\n    - roles with CollectionType and ChoiceType classes **with double choices : BUG !?**\n\n\n- Unique controller (src/Controller/DefaultController.php) :\n    - actions :\n        - index '/'\n        - new user '/new'\n        - edit user '/edit/{id}'\n\n\n- Templates :\n    - index (templates/default/index.html.twig) with a unique form (templates/default/form.html.twig)\n\nTo run this project :\n\n```\ncomposer install\nbin/console doctrine:migration:migrate\nbin/console doctrine:fixture:load\n\nphp -S localhost:8000 -t public\n```\n\nSources : \n\nSecurity : https://symfony.com/doc/current/security.html\n\nForm : https://symfony.com/doc/current/forms.html\n\nCollectionType field : https://symfony.com/doc/current/reference/forms/types/collection.html\n\nChoiceType field : https://symfony.com/doc/current/reference/forms/types/choice.html\n\nThe Difference between Data Transformers and Mappers : https://symfony.com/doc/current/form/data_mappers.html#the-difference-between-data-transformers-and-mappers\n\n- Security : https://symfony.com/doc/current/security.html\n- Form : https://symfony.com/doc/current/forms.html\n- CollectionType field : https://symfony.com/doc/current/reference/forms/types/collection.html\n- ChoiceType field : https://symfony.com/doc/current/reference/forms/types/choice.html\n- The Difference between Data Transformers and Mappers : https://symfony.com/doc/current/form/data_mappers.html#the-difference-between-data-transformers-and-mappers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmick3diy%2Fform-tests-with-collectiontype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmick3diy%2Fform-tests-with-collectiontype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmick3diy%2Fform-tests-with-collectiontype/lists"}