Created
November 14, 2020 12:00
-
-
Save wazum/0661afa3a84e57dab18dcb6b69d814f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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