diff --git a/Entity/LdapUser.php b/Entity/LdapUser.php index 3741422..89c68b5 100644 --- a/Entity/LdapUser.php +++ b/Entity/LdapUser.php @@ -59,7 +59,7 @@ class LdapUser extends Entity implements UserInterface { protected $eduPersonAffiliation; /** - * @OLO\Column(type="string") + * @OLO\Column(type="array") */ protected $supannEmpCorps; @@ -275,8 +275,13 @@ public function getSupannEmpCorps() { return $this->supannEmpCorps; } - public function setSupannEmpCorps($value) { - $this->supannEmpCorps = $value; + public function addSupannEmpCorps($value) { + $this->supannEmpCorps->add($value); + return $this; + } + + public function removeSupannEmpCorps($value) { + $this->supannEmpCorps->removeElement($value); return $this; } }