PHPackages                             sspat/doctrine-nullable-embeddables - 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. sspat/doctrine-nullable-embeddables

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

sspat/doctrine-nullable-embeddables
===================================

Patches doctrine/orm to allow usage of nullable embeddables

v3.5.4(2mo ago)42.6k1MITPHPPHP ^7.4|^8.0CI failing

Since Dec 4Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/sspat/doctrine-nullable-embeddables)[ Packagist](https://packagist.org/packages/sspat/doctrine-nullable-embeddables)[ RSS](/packages/sspat-doctrine-nullable-embeddables/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (83)Used By (0)

Nullable embeddables for Doctrine
=================================

[](#nullable-embeddables-for-doctrine)

As soon as you start using embeddable value objects in your Doctrine entities there is chance you will run in the problem, that Doctrine will instantiate value objects even when the corressponding value in the database is null. This will lead to typing-related PHP errors.

Basic example:

```
