mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
WIP [centerHistory] Try to get test to work for personCenterHistory
This commit is contained in:
@@ -1606,6 +1606,15 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function addCenterHistory(PersonCenterHistory $newCenterHistory): self
|
||||
{
|
||||
if (!$this->centerHistory->contains($newCenterHistory)) {
|
||||
$this->centerHistory[] = $newCenterHistory;
|
||||
$newCenterHistory->setPerson($this);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Person
|
||||
*/
|
||||
|
Reference in New Issue
Block a user