mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Create thirdparty on the fly with institution / contact
This commit is contained in:
@@ -65,6 +65,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="kind", type="string", length="20", options={"default":""})
|
||||
* @Groups({"write"})
|
||||
*/
|
||||
private ?string $kind = "";
|
||||
|
||||
@@ -133,14 +134,14 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
* @ORM\JoinColumn(name="parent_id", referencedColumnName="id")
|
||||
* @Groups({"read"})
|
||||
*/
|
||||
private ?ThirdParty $parent;
|
||||
private ?ThirdParty $parent = null;
|
||||
|
||||
/**
|
||||
* @var Civility
|
||||
* @ORM\ManyToOne(targetEntity=Civility::class)
|
||||
* ORM\JoinColumn(name="civility", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private ?Civility $civility;
|
||||
private ?Civility $civility = null;
|
||||
|
||||
/**
|
||||
* [fr] Qualité
|
||||
@@ -148,7 +149,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
* @ORM\ManyToOne(targetEntity="Chill\ThirdPartyBundle\Entity\ThirdPartyProfession")
|
||||
* ORM\JoinColumn(name="profession", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
private ?ThirdPartyProfession $profession;
|
||||
private ?ThirdPartyProfession $profession = null;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
@@ -463,10 +464,10 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Address $address
|
||||
* @param Address|null $address
|
||||
* @return $this
|
||||
*/
|
||||
public function setAddress(Address $address)
|
||||
public function setAddress(?Address $address = null)
|
||||
{
|
||||
$this->address = $address;
|
||||
|
||||
|
Reference in New Issue
Block a user