Created
November 14, 2020 10:36
-
-
Save wazum/f612a732e73fc190b7d58be910470396 to your computer and use it in GitHub Desktop.
Person entity with nullable EmailAddress value object
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 | |
{ | |
/** | |
* @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