mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
Add missing fields & migrations
This commit is contained in:
@@ -74,9 +74,9 @@ class Activity implements HasCenterInterface, HasScopeInterface
|
||||
private \DateTime $durationTime;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="time")
|
||||
* @ORM\Column(type="time", nullable=true)
|
||||
*/
|
||||
private \DateTime $travelTime;
|
||||
private ?\DateTime $travelTime;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity="Chill\ActivityBundle\Entity\ActivityPresence")
|
||||
@@ -111,22 +111,22 @@ class Activity implements HasCenterInterface, HasScopeInterface
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity="Chill\PersonBundle\Entity\Person")
|
||||
*/
|
||||
private ArrayCollection $persons;
|
||||
private Collection $persons;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity="Chill\ThirdPartyBundle\Entity\ThirdParty")
|
||||
*/
|
||||
private ArrayCollection $thirdParties;
|
||||
private Collection $thirdParties;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity="Chill\DocStoreBundle\Entity\Document")
|
||||
*/
|
||||
private ArrayCollection $documents;
|
||||
private Collection $documents;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity="Chill\MainBundle\Entity\User")
|
||||
*/
|
||||
private ArrayCollection $users;
|
||||
private Collection $users;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="boolean", options={"default"=false})
|
||||
@@ -252,7 +252,7 @@ class Activity implements HasCenterInterface, HasScopeInterface
|
||||
/**
|
||||
* Get reasons
|
||||
*/
|
||||
public function getReasons(): ArrayCollection
|
||||
public function getReasons(): Collection
|
||||
{
|
||||
return $this->reasons;
|
||||
}
|
||||
@@ -347,12 +347,12 @@ class Activity implements HasCenterInterface, HasScopeInterface
|
||||
$this->persons->removeElement($person);
|
||||
}
|
||||
|
||||
public function getPersons(): ArrayCollection
|
||||
public function getPersons(): Collection
|
||||
{
|
||||
return $this->persons;
|
||||
}
|
||||
|
||||
public function setPersons(ArrayCollection $persons): self
|
||||
public function setPersons(Collection $persons): self
|
||||
{
|
||||
$this->persons = $persons;
|
||||
|
||||
@@ -371,12 +371,12 @@ class Activity implements HasCenterInterface, HasScopeInterface
|
||||
$this->thirdParties->removeElement($thirdParty);
|
||||
}
|
||||
|
||||
public function getThirdParties(): ArrayCollection
|
||||
public function getThirdParties(): Collection
|
||||
{
|
||||
return $this->thirdParties;
|
||||
}
|
||||
|
||||
public function setThirdParties(ArrayCollection $thirdParties): self
|
||||
public function setThirdParties(Collection $thirdParties): self
|
||||
{
|
||||
$this->thirdParties = $thirdParties;
|
||||
|
||||
@@ -395,12 +395,12 @@ class Activity implements HasCenterInterface, HasScopeInterface
|
||||
$this->documents->removeElement($document);
|
||||
}
|
||||
|
||||
public function getDocuments(): ArrayCollection
|
||||
public function getDocuments(): Collection
|
||||
{
|
||||
return $this->documents;
|
||||
}
|
||||
|
||||
public function setDocuments(ArrayCollection $documents): self
|
||||
public function setDocuments(Collection $documents): self
|
||||
{
|
||||
$this->documents = $documents;
|
||||
|
||||
@@ -419,12 +419,12 @@ class Activity implements HasCenterInterface, HasScopeInterface
|
||||
$this->users->removeElement($user);
|
||||
}
|
||||
|
||||
public function getUsers(): ArrayCollection
|
||||
public function getUsers(): Collection
|
||||
{
|
||||
return $this->users;
|
||||
}
|
||||
|
||||
public function setUsers(ArrayCollection $users): self
|
||||
public function setUsers(Collection $users): self
|
||||
{
|
||||
$this->users = $users;
|
||||
|
||||
|
Reference in New Issue
Block a user