2017 © Pedro PelĂĄez
 

library doctrine-nullable-embeddables

Mechanism for nullable embeddables in Doctrine 2.5+

image

fmasa/doctrine-nullable-embeddables

Mechanism for nullable embeddables in Doctrine 2.5+

  • Thursday, February 22, 2018
  • by fmasa
  • Repository
  • 2 Watchers
  • 3 Stars
  • 2,353 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 83 % Grown

The README.md

Doctrine nullable embeddables

Build Status Coverage Status, (*1)

This package serves as workaround for Doctrine's lack of support of nullable embeddables due to implementation of embeddables in Doctrine 2.5+ For more informations about the issue see doctrine/doctrine2., (*2)

Installation

The best way to install fmasa/doctrine-yaml-annotations is using Composer:, (*3)

$ composer require fmasa/doctrine-nullable-embeddables

There are several conditions that has to be met: - Property with nullable embeddable must use Fmasa\DoctrineNullableEmbeddables\Annotations\Nullable annotation. - Every property in nullable embeddable must be nullable (or must use Nullable annotation if it's embeddable), (*4)

Now all you have to do is register Fmasa\DoctrineNullableEmbeddables\Subscriber and you have nullable embeddables working:, (*5)

/* @var $annotationReader Doctrine\Common\Annotations\Reader */
/* @var $em Doctrine\ORM\EntityManager */

$evm->addEventSubscriber(new Fmasa\DoctrineNullableEmbeddables\Subscriber($annotationReader));

But I'm using YAML for mapping!

See fmasa/doctrine-yaml-annotations to make extensions like this work with YAML mapping., (*6)

The Versions

22/02 2018

dev-master

9999999-dev

Mechanism for nullable embeddables in Doctrine 2.5+

  Sources   Download

MIT

The Requires

 

The Development Requires

22/02 2018

1.0.1

1.0.1.0

Mechanism for nullable embeddables in Doctrine 2.5+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/09 2017

1.0

1.0.0.0

Mechanism for nullable embeddables in Doctrine 2.5+

  Sources   Download

MIT

The Requires

 

The Development Requires

04/07 2017

0.1

0.1.0.0

Mechanism for nullable embeddables in Doctrine 2.5+

  Sources   Download

MIT

The Requires

 

The Development Requires