{"id":19783105,"url":"https://github.com/edmondscommerce/dsm-symfony","last_synced_at":"2025-07-07T02:38:42.105Z","repository":{"id":56975134,"uuid":"133350197","full_name":"edmondscommerce/dsm-symfony","owner":"edmondscommerce","description":"Symfony Bundle to support using Doctrine Static Meta","archived":false,"fork":false,"pushed_at":"2019-09-16T13:38:33.000Z","size":43,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T13:07:18.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edmondscommerce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-14T11:24:57.000Z","updated_at":"2019-09-10T15:48:43.000Z","dependencies_parsed_at":"2022-08-21T11:50:55.772Z","dependency_job_id":null,"html_url":"https://github.com/edmondscommerce/dsm-symfony","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/edmondscommerce/dsm-symfony","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edmondscommerce%2Fdsm-symfony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edmondscommerce%2Fdsm-symfony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edmondscommerce%2Fdsm-symfony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edmondscommerce%2Fdsm-symfony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edmondscommerce","download_url":"https://codeload.github.com/edmondscommerce/dsm-symfony/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edmondscommerce%2Fdsm-symfony/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264002945,"owners_count":23542523,"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":[],"created_at":"2024-11-12T06:07:19.584Z","updated_at":"2025-07-07T02:38:42.089Z","avatar_url":"https://github.com/edmondscommerce.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dsm-symfony\n\n## By [Edmonds Commerce](https://www.edmondscommerce.co.uk)\nA symfony bundle that facilitates using [Doctrine Static Meta](https://github.com/edmondscommerce/doctrine-static-meta) \n\n## _THIS IS NOT PRODUCTION READY_\n\n\n### Install\n\nFirst you need to add the following to your `composer.json`:\n\n```json\n{\n    \"require\": {\n        \"edmondscommerce/dsm-symfony\": \"dev-master\"\n    },\n    \"repositories\": [\n        {\n            \"type\": \"git\",\n            \"url\": \"https://github.com/edmondscommerce/dsm-symfony\"\n        }\n    ]\n}\n```\n\nThen you need to register the bundle by adding the following to `config/bundles.php`:\n\n```php\nreturn [\n    EdmondsCommerce\\DsmApiPlatformBundle\\DsmApiPlatformBundle::class =\u003e ['all' =\u003e true]\n];\n```\n\nYou should now see the DSM commands when you run `./bin/console`:\n\n```bash\n./bin/console\n# ...\n dsm\n  dsm:generate:entity                     Generate an Entity\n  dsm:generate:field                      Generate a field\n  dsm:generate:relations                  Generate relations traits for your entities. Optionally filter down the list of entities to generate relationship traits for\n  dsm:set:field                           Set an Entity as having a Field\n  dsm:set:relation\n# ...\n```\n\n### Regenerating Entities in Existing Project\n\nIn order to avoid autowiring issues it is advised that you comment out any services in `config/services.yaml`\nthat reference your project code. For example:\n\n```yaml\n#    # makes classes in src/ available to be used as services\n#    # this creates a service per class whose id is the fully-qualified class name\n#    App\\:\n#        resource: '../src/*'\n#        exclude: '../src/{Entities,Entity,Migrations,Tests,Kernel.php}'\n```\nThis should only be needed when regenerating entities that are referenced elsewhere in the code. Once the generation is complete then these lines should be uncommented again. See [Issue 3](https://github.com/edmondscommerce/dsm-api-platform/issues/3) for more details\n\n### Configuration\n\nThis will add the Symfony doctrine configuration to DSM. This is handled in the [Container](./DsmBundle/DependencyInjection/Container.php) file where we remove the DMS Entity Manager Factory and replace it with our [own](./DsmBundle/Doctrine/Common/EntityManagerFactory.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmondscommerce%2Fdsm-symfony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedmondscommerce%2Fdsm-symfony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmondscommerce%2Fdsm-symfony/lists"}