Skip to content

Commit

Permalink
Change more annotations to attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Mar 5, 2024
1 parent 0d0adac commit c02e1bc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,17 +259,17 @@ private function assertTransactionState(LifecycleEventArgs $e): void
}
}

/** @ODM\EmbeddedDocument */
#[ODM\EmbeddedDocument]
class EmbeddedEventDocument extends BaseEventDocument
{
}

/** @ODM\Document */
#[ODM\Document]
class RootEventDocument extends BaseEventDocument
{
/** @ODM\Id */
#[ODM\Id]
public string $id;

/** @ODM\EmbedOne(targetDocument=EmbeddedEventDocument::class) */
#[ODM\EmbedOne(targetDocument: EmbeddedEventDocument::class)]
public ?EmbeddedEventDocument $embedded;
}

0 comments on commit c02e1bc

Please sign in to comment.