/**
* Assigns role to user with given limitation.
*
* @param mixed $contentId
* @param mixed $roleId
* @param array $limitation
*/
public function assignRole($contentId, $roleId, array $limitation)
{
try {
return $this->innerGateway->assignRole($contentId, $roleId, $limitation);
} catch (DBALException $e) {
throw new RuntimeException('Database error', 0, $e);
} catch (PDOException $e) {
throw new RuntimeException('Database error', 0, $e);
}
}