{"id":25893482,"url":"https://github.com/jenkoian/doctrine-issue","last_synced_at":"2025-09-12T07:40:42.519Z","repository":{"id":185590874,"uuid":"673775811","full_name":"jenkoian/doctrine-issue","owner":"jenkoian","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-02T12:20:38.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T04:43:20.641Z","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/jenkoian.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,"governance":null}},"created_at":"2023-08-02T11:52:10.000Z","updated_at":"2023-08-02T11:54:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e00848c-a08f-4749-b292-7bc50b5ad3a0","html_url":"https://github.com/jenkoian/doctrine-issue","commit_stats":null,"previous_names":["jenkoian/doctrine-issue"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jenkoian/doctrine-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkoian%2Fdoctrine-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkoian%2Fdoctrine-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkoian%2Fdoctrine-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkoian%2Fdoctrine-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenkoian","download_url":"https://codeload.github.com/jenkoian/doctrine-issue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkoian%2Fdoctrine-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274777523,"owners_count":25347647,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-03-02T21:36:19.418Z","updated_at":"2025-09-12T07:40:42.489Z","avatar_url":"https://github.com/jenkoian.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doctrine issue\n\nIssues noticed in 2.16.0 due to change made in https://github.com/doctrine/orm/pull/10785\n\nReported here: https://github.com/doctrine/orm/issues/10867\n\n## Setup\n\n`composer update`\n\n`bin/doctrine orm:schema-tool:drop --force`\n\n`bin/doctrine orm:schema-tool:create`\n\n## Issue 1\n\n`php issue1.php`\n\n* If we have an entity (Product in this case) with a manually set identifier\n* We then delete the entity from the database (I'm doing it here via a raw query but could just easily be done by another app/direct in the DB etc.)\n* We attempt to find the entity but it doesn't exist so we attempt to create it\n* Will get an error where as before this would work\n\n## Issue 2\n\n`php issue2.php`\n\n* If we have an entity (Product in this case) the identifier is set manually in this example but don't think it matters\n* Get a proxy version of the entity\n* Attempt to get a value from the entity\n* Will get an error where as before this would work\n\n## Working 2.15.5 version\n\nYou can switch to the `doctrine-2.15.5` to see it working before, remember to run `composer update`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkoian%2Fdoctrine-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenkoian%2Fdoctrine-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkoian%2Fdoctrine-issue/lists"}