mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
@@ -55,9 +55,9 @@ class Participation
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setLastUpdate($lastUpdate)
|
||||
protected function update()
|
||||
{
|
||||
$this->lastUpdate = $lastUpdate;
|
||||
$this->lastUpdate = new \DateTime('now');
|
||||
|
||||
return $this;
|
||||
}
|
||||
@@ -82,6 +82,10 @@ class Participation
|
||||
*/
|
||||
public function setEvent(\Chill\EventBundle\Entity\Event $event = null)
|
||||
{
|
||||
if ($this->event !== $event) {
|
||||
$this->update();
|
||||
}
|
||||
|
||||
$this->event = $event;
|
||||
|
||||
return $this;
|
||||
@@ -106,6 +110,10 @@ class Participation
|
||||
*/
|
||||
public function setPerson(\Chill\PersonBundle\Entity\Person $person = null)
|
||||
{
|
||||
if ($person !== $this->person) {
|
||||
$this->update();
|
||||
}
|
||||
|
||||
$this->person = $person;
|
||||
|
||||
return $this;
|
||||
@@ -130,6 +138,9 @@ class Participation
|
||||
*/
|
||||
public function setRole(\Chill\EventBundle\Entity\Role $role = null)
|
||||
{
|
||||
if ($role !== $this->role) {
|
||||
$this->update();
|
||||
}
|
||||
$this->role = $role;
|
||||
|
||||
return $this;
|
||||
@@ -154,6 +165,10 @@ class Participation
|
||||
*/
|
||||
public function setStatus(\Chill\EventBundle\Entity\Status $status = null)
|
||||
{
|
||||
if ($this->status !== $status) {
|
||||
$this->update();
|
||||
}
|
||||
|
||||
$this->status = $status;
|
||||
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user