PHPackages                             jdecool/doctrine-nullable-embeddable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. jdecool/doctrine-nullable-embeddable

ActiveLibrary[Database &amp; ORM](/categories/database)

jdecool/doctrine-nullable-embeddable
====================================

Implement nullable embeddables in Doctrine entities

16PHP

Since May 10Pushed 2y ago2 watchersCompare

[ Source](https://github.com/jdecool/doctrine-nullable-embeddable)[ Packagist](https://packagist.org/packages/jdecool/doctrine-nullable-embeddable)[ RSS](/packages/jdecool-doctrine-nullable-embeddable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DoctrineNullableEmbeddable
==========================

[](#doctrinenullableembeddable)

[![Build Status](https://github.com/jdecool/doctrine-nullable-embeddable/actions/workflows/ci.yml/badge.svg)](https://actions-badge.atrox.dev/jdecool/doctrine-nullable-embeddable/goto?ref=main)[![Latest Stable Version](https://camo.githubusercontent.com/ceb16669cd3399f16628ad39b9e0cc8c6141f13efa74f704417c2d4efdaeff52/68747470733a2f2f706f7365722e707567782e6f72672f6a6465636f6f6c2f646f637472696e652d6e756c6c61626c652d656d6265646461626c652f762f737461626c652e706e67)](https://packagist.org/packages/jdecool/doctrine-nullable-embeddable)

Implement nullable embeddables in Doctrine entities

Install it
----------

[](#install-it)

Install the extension using [Composer](https://getcomposer.org):

```
$ composer require jdecool/doctrine-nullable-embeddable
```

Available attributes
--------------------

[](#available-attributes)

- `JDecool\DoctrineNullableEmbeddable\Attribute\NullableEmbeddable`
- `JDecool\DoctrineNullableEmbeddable\Attribute\NullableEmbedded`

Register the mapping listener
-----------------------------

[](#register-the-mapping-listener)

Nullable Doctrine embeddables can be automatically managed by reigster the `JDecool\DoctrineNullableEmbeddable\Listener\MappingListener` listener class.

```
$configuration = new Configuration();
// ...

$entityManager = EntityManager::create(['driver' => 'pdo_sqlite', 'memory' => true], $configuration);

$eventManager = $entityManager->getEventManager();
$eventManager->addEventListener(['loadClassMetadata'], new MappingListener());
```

Register entity listener manually
---------------------------------

[](#register-entity-listener-manually)

Or you can manually register the `JDecool\DoctrineNullableEmbeddable\Listener\NullableEmbeddableListener` on an entity.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a648f4457ad94c2fc48782bded875f3bf051b480fd2fe01eb7654b9fab180e5e?d=identicon)[jdecool](/maintainers/jdecool)

---

Top Contributors

[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (1 commits)")

### Embed Badge

![Health badge](/badges/jdecool-doctrine-nullable-embeddable/health.svg)

```
[![Health](https://phpackages.com/badges/jdecool-doctrine-nullable-embeddable/health.svg)](https://phpackages.com/packages/jdecool-doctrine-nullable-embeddable)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
