{"id":16292398,"url":"https://github.com/fmasa/doctrine-nullable-embeddables","last_synced_at":"2025-10-25T12:30:49.464Z","repository":{"id":62506035,"uuid":"96243239","full_name":"fmasa/doctrine-nullable-embeddables","owner":"fmasa","description":"Mechanism for nullable embeddables in Doctrine 2.5+","archived":true,"fork":false,"pushed_at":"2018-03-26T17:26:35.000Z","size":19,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T07:48:59.856Z","etag":null,"topics":["ddd","doctrine2","embeddables","orm","value-object"],"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/fmasa.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":"2017-07-04T18:15:30.000Z","updated_at":"2024-09-20T01:35:33.000Z","dependencies_parsed_at":"2022-11-02T12:30:37.833Z","dependency_job_id":null,"html_url":"https://github.com/fmasa/doctrine-nullable-embeddables","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmasa%2Fdoctrine-nullable-embeddables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmasa%2Fdoctrine-nullable-embeddables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmasa%2Fdoctrine-nullable-embeddables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmasa%2Fdoctrine-nullable-embeddables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fmasa","download_url":"https://codeload.github.com/fmasa/doctrine-nullable-embeddables/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238137893,"owners_count":19422721,"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":["ddd","doctrine2","embeddables","orm","value-object"],"created_at":"2024-10-10T20:06:21.272Z","updated_at":"2025-10-25T12:30:49.115Z","avatar_url":"https://github.com/fmasa.png","language":"PHP","readme":"# Doctrine nullable embeddables\n[![Build Status](https://travis-ci.org/fmasa/doctrine-nullable-embeddables.svg?branch=master)](https://travis-ci.org/fmasa/doctrine-nullable-embeddables)\n[![Coverage Status](https://coveralls.io/repos/github/fmasa/doctrine-nullable-embeddables/badge.svg?branch=master)](https://coveralls.io/github/fmasa/doctrine-nullable-embeddables?branch=master)\n\nThis package serves as workaround for Doctrine's lack of support of nullable embeddables due to implementation of embeddables in Doctrine 2.5+\nFor more informations about the issue see [doctrine/doctrine2](https://github.com/doctrine/doctrine2/issues/4568).\n\n## Installation\nThe best way to install fmasa/doctrine-yaml-annotations is using [Composer](https://getcomposer.org/):\n\n    $ composer require fmasa/doctrine-nullable-embeddables\n\nThere are several conditions that has to be met:\n- Property with nullable embeddable must use `Fmasa\\DoctrineNullableEmbeddables\\Annotations\\Nullable` annotation.\n- Every property in nullable embeddable must be nullable (or must use `Nullable` annotation if it's embeddable)\n\nNow all you have to do is register `Fmasa\\DoctrineNullableEmbeddables\\Subscriber` and you have nullable embeddables working:\n```php\n/* @var $annotationReader Doctrine\\Common\\Annotations\\Reader */\n/* @var $em Doctrine\\ORM\\EntityManager */\n\n$evm-\u003eaddEventSubscriber(new Fmasa\\DoctrineNullableEmbeddables\\Subscriber($annotationReader));\n```\n\n### But I'm using YAML for mapping!\nSee [fmasa/doctrine-yaml-annotations](https://github.com/fmasa/doctrine-yaml-annotations) to make extensions like this work with YAML mapping.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmasa%2Fdoctrine-nullable-embeddables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmasa%2Fdoctrine-nullable-embeddables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmasa%2Fdoctrine-nullable-embeddables/lists"}