Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FirstEntity
- {
- /**
- * @var EntitySecond
- *
- * @ORM\OneToOne(targetEntity="EntitySecond")
- * @ORM\JoinColumn(name="entity_second", referencedColumnName="id", unique=false)
- */
- private $entitySecond;
- /**
- * @return EntitySecond
- */
- public function getConfirmingDoc(): EntitySecond
- {
- return $this->entitySecond;
- }
- /**
- * @param EntitySecond $entitySecond
- */
- public function setConfirmingDoc(EntitySecond $entitySecond): void
- {
- $this->entitySecond = $entitySecond;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement