Skip to content

Instantly share code, notes, and snippets.

@wazum
Created November 14, 2020 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wazum/0661afa3a84e57dab18dcb6b69d814f1 to your computer and use it in GitHub Desktop.
Save wazum/0661afa3a84e57dab18dcb6b69d814f1 to your computer and use it in GitHub Desktop.
<?php
declare(strict_types=1);
namespace App\Something\Domain\Entity;
/**
* @ORM\Entity
*/
class Person extends DomainEntity implements ContainsNullableEmbeddable
{
/**
* @ORM\Embedded(class="App\Something\Domain\ValueObject\EmailAddress", columnPrefix=false)
*/
protected ?EmailAddress $emailAddress = null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment