@@ 151-157 (lines=7) @@ | ||
148 | * |
|
149 | * @param string $profileId |
|
150 | */ |
|
151 | public function saveProfileId($profileId, $id=false) { |
|
152 | $em = $this->getEntityManager(); |
|
153 | $config = $id ? $this->find($id) : $this->findFirst(); |
|
154 | $config->setProfileId($profileId); |
|
155 | $em->persist($config); |
|
156 | $em->flush(); |
|
157 | } |
|
158 | ||
159 | /** |
|
160 | * saves the config name |
|
@@ 164-170 (lines=7) @@ | ||
161 | * |
|
162 | * @param string $profileId |
|
163 | */ |
|
164 | public function saveConfigName($name, $id=false) { |
|
165 | $em = $this->getEntityManager(); |
|
166 | $config = $id ? $this->find($id) : $this->findFirst(); |
|
167 | $config->setName($name); |
|
168 | $em->persist($config); |
|
169 | $em->flush(); |
|
170 | } |
|
171 | ||
172 | /** |
|
173 | * Resets the profile id |
|
@@ 177-183 (lines=7) @@ | ||
174 | * |
|
175 | * @param int id |
|
176 | */ |
|
177 | public function resetProfileId($id=false) { |
|
178 | $em = $this->getEntityManager(); |
|
179 | $config = $id ? $this->find($id) : $this->findFirst(); |
|
180 | $config->setProfileId(''); |
|
181 | $em->persist($config); |
|
182 | $em->flush(); |
|
183 | } |
|
184 | ||
185 | /** |
|
186 | * Resets the account id, property id and profile id |