@@ 162-168 (lines=7) @@ | ||
159 | * |
|
160 | * @param string $profileId |
|
161 | */ |
|
162 | public function saveProfileId($profileId, $id = false) |
|
163 | { |
|
164 | $em = $this->getEntityManager(); |
|
165 | $config = $id ? $this->find($id) : $this->findFirst(); |
|
166 | $config->setProfileId($profileId); |
|
167 | $em->persist($config); |
|
168 | $em->flush(); |
|
169 | } |
|
170 | ||
171 | /** |
|
@@ 176-182 (lines=7) @@ | ||
173 | * |
|
174 | * @param string $profileId |
|
175 | */ |
|
176 | public function saveConfigName($name, $id = false) |
|
177 | { |
|
178 | $em = $this->getEntityManager(); |
|
179 | $config = $id ? $this->find($id) : $this->findFirst(); |
|
180 | $config->setName($name); |
|
181 | $em->persist($config); |
|
182 | $em->flush(); |
|
183 | } |
|
184 | ||
185 | /** |
|
@@ 190-196 (lines=7) @@ | ||
187 | * |
|
188 | * @param int id |
|
189 | */ |
|
190 | public function resetProfileId($id = false) |
|
191 | { |
|
192 | $em = $this->getEntityManager(); |
|
193 | $config = $id ? $this->find($id) : $this->findFirst(); |
|
194 | $config->setProfileId(''); |
|
195 | $em->persist($config); |
|
196 | $em->flush(); |
|
197 | } |
|
198 | ||
199 | /** |