/** * * @see UserServicePDO::assignUserProperty() */ public static function assignUserProperty($id, $propId) { $app = \Slim\Slim::getInstance(); try { $pdo = new UserServicePDO(); $pdo->assignUserProperty($id, $propId); AppUtils::sendResponse($propId); } catch (Exception $e) { AppUtils::logError($e, __METHOD__); AppUtils::sendError($e->getCode(), "Error assigning property {$propId} to user with ID {$id}", $e->getMessage()); } }