| @@ 2078-2086 (lines=9) @@ | ||
| 2075 | * @param int $id |
|
| 2076 | * @param array $params |
|
| 2077 | */ |
|
| 2078 | public static function updateStatus($id, $params) |
|
| 2079 | { |
|
| 2080 | $item = self::getStatus($id); |
|
| 2081 | $item->setName($params['name']); |
|
| 2082 | $item->setDescription($params['description']); |
|
| 2083 | ||
| 2084 | Database::getManager()->merge($item); |
|
| 2085 | Database::getManager()->flush(); |
|
| 2086 | } |
|
| 2087 | ||
| 2088 | /** |
|
| 2089 | * @param int $id |
|
| @@ 2203-2211 (lines=9) @@ | ||
| 2200 | * @param int $id |
|
| 2201 | * @param array $params |
|
| 2202 | */ |
|
| 2203 | public static function updatePriority($id, $params) |
|
| 2204 | { |
|
| 2205 | $item = self::getPriority($id); |
|
| 2206 | $item->setName($params['name']); |
|
| 2207 | $item->setDescription($params['description']); |
|
| 2208 | ||
| 2209 | Database::getManager()->merge($item); |
|
| 2210 | Database::getManager()->flush(); |
|
| 2211 | } |
|
| 2212 | ||
| 2213 | /** |
|
| 2214 | * @param int $id |
|