From bcab897518da90570d5dac6d27bd5eb28ec87229 Mon Sep 17 00:00:00 2001 From: mhetru <11898775+mhetru@users.noreply.github.com> Date: Mon, 26 Jun 2023 18:52:58 +0200 Subject: [PATCH] modif --- Entity/LdapUser.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Entity/LdapUser.php b/Entity/LdapUser.php index 146ab95..2c4a041 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; @@ -274,8 +274,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; } }